/*
Theme Name: Aloka Cipta Mandiri
Theme URI: https://www.alokaciptamandiri.com
Author: Sandy Aprilyanto
Description: Tema Custom Premium untuk Ekspor Daun Ketapang.
Version: 1.2 (Vertical Blog Card Updated)
*/

/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    /* Color Palette */
    --primary-color: #1a3c1e; /* Hijau Deep Forest */
    --secondary-color: #c5a059; /* Emas Elegan (Gold) */
    --text-color: #333333;
    --bg-light: #f9f9f7; 
    --white: #ffffff;
    
    /* Font Stack */
    --font-heading: 'Lora', serif; 
    --font-body: 'Montserrat', sans-serif; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 24px;
}

/* Typography Styling */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; }
h2 { font-size: 2.5rem; margin-bottom: 15px; }

.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--secondary-color);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.text-center { text-align: center; }

/* Buttons Style (Pill Shape) */
.cta-button {
    display: inline-block;
    padding: 14px 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 50px; 
    transition: all 0.3s ease;
    
}

.cta-button.primary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}
.cta-button.primary:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}
.cta-button.secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}
.cta-button.outline-white {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}
.cta-button.outline-white:hover {
    background-color: var(--white);
    color: var(--primary-color);
}


/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.4s ease, padding 0.4s ease;
    padding: 20px 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

header.scrolled {
    background-color: var(--white);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container { display: flex; justify-content: space-between; align-items: center; }

.logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--white); font-weight: 700; letter-spacing: 1px;
}
.logo img { height: 40px; }
.logo span { font-size: 1.1rem; }
header.scrolled .logo { color: var(--primary-color); }

nav ul { display: flex; list-style: none; }
nav ul li { margin-left: 30px; }
nav ul li a {
    text-decoration: none; color: var(--white); font-size: 0.9rem;
    font-weight: 500; text-transform: uppercase; transition: color 0.3s;
}
header.scrolled nav ul li a { color: var(--primary-color); }
nav ul li a:hover, nav ul li.active a { color: var(--secondary-color); }

.nav-btn { 
    border: 2px solid var(--white); 
    padding: 10px 25px; 
    border-radius: 50px; 
    font-weight: 600;
    transition: all 0.3s ease;
}
header.scrolled .nav-btn { border-color: var(--primary-color); }
.nav-btn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white) !important;
}

/* Burger Menu */
.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 2px; background-color: var(--white); margin: 5px; transition: 0.3s; }
header.scrolled .burger div { background-color: var(--primary-color); }

/* =========================================
   3. HERO SECTION
   ========================================= */
#hero {
    position: relative; height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: var(--white);
}
.hero-video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); z-index: -1;
}
.hero-content { max-width: 800px; padding: 0 20px; z-index: 1; }
.hero-content .subtitle {
    display: block; font-size: 1rem; letter-spacing: 3px; margin-bottom: 10px; font-weight: 600; color: var(--secondary-color);
}
.hero-content h1 { color: var(--white); margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 40px; max-width: 600px; margin: 0 auto 40px auto; opacity: 0.9; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; }

/* =========================================
   4. TRUST BAR & ABOUT
   ========================================= */
#trust-bar { background-color: var(--primary-color); color: var(--white); padding: 40px 0; }
.trust-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; divide-x: 1px solid rgba(255,255,255,0.2);
}
.trust-item h3 { color: var(--secondary-color); font-size: 2rem; margin-bottom: 5px; font-family: var(--font-body); }
.trust-item p { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin: 0; }

#about { padding: 100px 0; background-color: var(--bg-light); }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text p { color: #555; margin-bottom: 25px; }
.features-list { display: grid; gap: 15px; margin-bottom: 30px; }
.f-item { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.text-link {
    color: var(--primary-color); 
    text-decoration: none; 
    font-weight: 700;
    border-bottom: 2px solid var(--secondary-color); 
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.text-link:hover {
    color: var(--secondary-color);    
    border-bottom-color: transparent; 
    transform: translateY(-2px); 
    display: inline-block; 
}

/* Modifikasi untuk Resource Hub (Card Link) */

.text-link::after {
    content: '→'; 
    margin-left: 8px; 
    font-size: 1.1rem;
    color: var(--secondary-color);
    transition: margin-left 0.3s, color 0.3s;
}
/* Ketika resource card di-hover */
.resource-card-grid:hover .text-link { 
    color: var(--secondary-color); 
}
.resource-card-grid:hover .text-link::after { 
    margin-left: 12px; 
    color: var(--primary-color); 
}
.about-image img {
    width: 100%; border-radius: 4px; box-shadow: 20px 20px 0px var(--secondary-color);
}

/* =========================================
   5. PROCESS SECTION
   ========================================= */
#process { padding: 100px 0; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 50px; }
.process-step { text-align: center; padding: 20px; }
.step-number {
    font-size: 3rem; font-weight: 700; color: rgba(0,0,0,0.05);
    line-height: 1; margin-bottom: -20px; position: relative; z-index: -1;
}
.process-step h3 { font-size: 1.3rem; margin-bottom: 15px; color: var(--primary-color); }
.process-step p { font-size: 0.95rem; color: #666; }

/* =========================================
   6. PRODUCT SECTION (Grid 4)
   ========================================= */
#product { padding: 100px 0; background-color: var(--bg-light); }
#product .section-header { text-align: center; margin-bottom: 50px; }

.product-grid-4 {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px;
}

.product-card.minimal {
    border: none; background: transparent; transition: transform 0.3s ease;
}
.product-card.minimal:hover { transform: translateY(-10px); }

.card-image-transparent {
    height: 280px; display: flex; align-items: center; justify-content: center;
    padding: 20px; background: #ffffff; border: 1px solid #eee;
    border-radius: 8px; margin-bottom: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.card-image-transparent img {
    max-width: 100%; max-height: 100%; object-fit: contain;
    filter: drop-shadow(5px 10px 10px rgba(0,0,0,0.2)); transition: transform 0.4s ease;
}
.product-card.minimal:hover .card-image-transparent img {
    transform: scale(1.1) rotate(2deg);
}

.card-body h3 { font-size: 1.2rem; margin-bottom: 5px; color: var(--primary-color); }
.size-tag { font-weight: 700; color: var(--secondary-color); font-size: 0.9rem; margin-bottom: 5px; }
.desc { font-size: 0.85rem; color: #888; }

.center-btn {
    text-align: center;
    margin-top: 50px; 
}
.single-row-container {
    /* 1. Aktifkan Flexbox pada container */
    display: flex; 
    
    /* 2. Pusat anak-anak (kartu produk) secara horizontal */
    justify-content: center; 
    
    /* Memastikan container mengambil lebar penuh */
    width: 100%; 
    margin-top: 50px; /* Jarak dari baris produk di atas */
}

/* =========================================
   7. BLOG & RESOURCE HUB (VERTICAL CARD)
   ========================================= */
#resource-hub {
    padding: 80px 0;
    background-color: #f9f9f9;
}

/* Blog Tools (Search & Filter) */
.blog-tools {
    display: flex; flex-direction: column; align-items: center;
    margin-bottom: 40px; padding: 15px 0; border-bottom: 1px solid #ddd; gap: 25px;
}

.topic-filter {
    display: flex; justify-content: center; align-items: center; gap: 15px; flex-wrap: wrap;
}
.topic-filter span { font-weight: 700; color: var(--primary-color); }

.topic-filter-links {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 10px;
    font-size: 0.9rem; font-weight: 500;
}
.topic-filter-links a {
    text-decoration: none; color: #666; padding: 5px 15px;
    border: 1px solid #eee; border-radius: 20px; transition: all 0.3s;
}
.topic-filter-links a:hover, .topic-filter-links a.active {
    background-color: var(--primary-color); color: var(--white); border-color: var(--primary-color);
}

/* Blog Grid Layout (3 Columns) */
.resource-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* Vertical Card Style */
.resource-card-grid {
    display: flex;
    flex-direction: column; /* Gambar di ATAS, Konten di BAWAH */
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    height: 100%;
    border: 1px solid transparent;
}

.resource-card-grid:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

/* Image (Top) */
.card-image-grid {
    width: 100%;
    height: 220px; /* Tinggi gambar tetap */
    position: relative;
    overflow: hidden;
}
.card-image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.resource-card-grid:hover .card-image-grid img {
    transform: scale(1.08);
}

/* Content (Bottom) */
.card-content-grid {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.card-meta {
    font-size: 0.75rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 12px;
}

.card-content-grid h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--primary-color);
    margin: 0 0 15px 0;
    font-weight: 700;
    /* Limit 2 lines */
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.card-content-grid p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 25px;
    /* Limit 3 lines */
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Link Button */
.card-content-grid .text-link {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex; align-items: center;
    transition: color 0.3s;
}
.text-link::after {
    content: '→'; margin-left: 8px; font-size: 1.1rem;
    color: var(--secondary-color); transition: margin-left 0.3s;
}
.resource-card-grid:hover .text-link { color: var(--secondary-color); }
.resource-card-grid:hover .text-link::after { margin-left: 12px; }


/* Pagination */
.pagination-wrapper {
    display: flex; flex-direction: column; align-items: center;
    gap: 15px; margin-top: 60px; margin-bottom: 20px;
}
.pagination-info { font-size: 0.9rem; color: #888; font-weight: 500; }
.pagination-controls { display: flex; gap: 8px; }
.page-btn {
    display: inline-flex; justify-content: center; align-items: center;
    width: 45px; height: 45px; border: 1px solid #ddd; border-radius: 50%;
    color: var(--text-color); text-decoration: none; font-weight: 600;
    transition: all 0.3s ease; background-color: var(--white); cursor: pointer;
}
.page-btn.prev, .page-btn.next { width: auto; padding: 0 20px; border-radius: 50px; }
.page-btn:hover:not(.disabled) {
    background-color: var(--secondary-color); color: var(--white); border-color: var(--secondary-color);
}
.page-btn.active {
    background-color: var(--primary-color); color: var(--white); border-color: var(--primary-color); pointer-events: none;
}
.page-btn.disabled { color: #ccc; border-color: #eee; cursor: default; background-color: #f9f9f9; }

/* =========================================
   8. BLOG POST DETAIL STYLE
   ========================================= */
#blog-post { padding: 100px 0; }
#blog-post .container { max-width: 800px; }
#blog-post h1 { font-size: 2.8rem; line-height: 1.2; margin-top: 15px; }
#blog-post h2 {
    font-size: 2rem; margin-top: 30px; margin-bottom: 15px;
    border-left: 5px solid var(--secondary-color); padding-left: 15px;
}
#blog-post p, #blog-post ul, #blog-post ol { font-size: 1.05rem; line-height: 1.8; margin-bottom: 20px; color: #444; }
#blog-post ul, #blog-post ol { padding-left: 20px; }
.post-image img { border-radius: 8px; border: 1px solid #ddd; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.highlight-box {
    background-color: #e8f6f3; border-left: 5px solid #1abc9c; padding: 20px; margin: 25px 0;
}

/* =========================================
   9. CONTACT SECTION
   ========================================= */
#contact {
    padding: 100px 0;
    background:#222;
    position: relative;
}

.contact-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

/* Judul Header */
.contact-wrapper h1 {
    color: var(--primary-color); /* Hijau Gelap */
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 10px;
}

.contact-wrapper p {
    color: #666;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Layout Grid */
.contact-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
    text-align: left;
}
.contact-content h2 { color: var(--white); }
.contact-content p { color: #ddd; margin-bottom: 40px; }
.contact-details { display: flex; justify-content: center; gap: 50px; }
.detail-item { display: flex; flex-direction: column; }
.detail-item strong { color: var(--secondary-color); margin-bottom: 5px; }
.detail-item a, .detail-item span { color: var(--white); text-decoration: none; }

/* --- KOLOM KIRI: INFO BOX --- */
.contact-info-box {
    background-color: #ffffff; /* Background Putih */
    padding: 0; /* Di Gambar 1, info box terlihat menyatu/bersih */
}

.contact-info-box h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

/* Ikon Kecil Bulat (Opsional, menyesuaikan style umum) */
.info-item .icon {
    font-size: 1.2rem;
    color: var(--primary-color);
    background: #f4f4f4;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.info-item .details {
    display: flex;
    flex-direction: column;
}

.info-item strong {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 3px;
}

/* === BAGIAN PENTING: LINK SEPERTI GAMBAR 1 === */
/* Tidak lagi biru, tapi Hitam/Abu Gelap */
.info-item a, 
.info-item span {
    color: #555; /* Abu gelap/Hitam lembut */
    text-decoration: none; /* Hilangkan garis bawah */
    font-weight: 400; /* Font normal, tidak tebal */
    font-size: 0.95rem;
    transition: color 0.3s;
}

.info-item a:hover {
    color: var(--secondary-color); /* Berubah Emas saat di-hover */
}

/* Peta di bawah info */
.contact-info-box iframe {
    border-radius: 12px;
    margin-top: 10px;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* --- KOLOM KANAN: FORM --- */
.contact-form-box {
    background-color: #ffffff;
    padding: 30px;
    border: 1px solid #eaeaea; /* Border halus di sekeliling form */
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}

.contact-form-box h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #333;
}

/* Input & Select Style (Rounded Rectangle) */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e1e1; /* Border abu muda */
    border-radius: 6px; /* Rounded halus (seperti Gambar 1) */
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #555;
    background-color: #fff;
    outline: none;
    transition: all 0.3s;
}

/* Dropdown (Subject) Styling */
.form-group select {
    appearance: none; /* Menghilangkan panah default browser */
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    cursor: pointer;
}

/* Fokus State */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #aaa; /* Border sedikit lebih gelap saat diklik */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
/* == EXPORT SECTION == */
#export { padding: 80px 0; background-color: var(--white); }
.export-box {
    background-color: var(--primary-color); color: var(--white);
    padding: 60px; display: flex; justify-content: space-between; align-items: center; border-radius: 4px;
}
.export-text h2 { color: var(--white); }
.export-text p { opacity: 0.8; margin-bottom: 20px; }
.cert-icons { display: flex; gap: 15px; flex-wrap: wrap; }
.c-item {
    background: rgba(255,255,255,0.1); padding: 5px 15px;
    border-radius: 20px; font-size: 0.8rem; border: 1px solid rgba(255,255,255,0.3);
}
/* Tombol Submit (Emas) */
.contact-form-box button[type="submit"] {
    width: 100%;
    border-radius: 6px; /* Radius sama dengan input */
    padding: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-top: 10px;
    cursor: pointer;
    background-color: var(--secondary-color); /* Warna Emas */
    color: #fff;
    border: none;
    transition: background 0.3s;
}

.contact-form-box button[type="submit"]:hover {
    background-color: #b08d4b; /* Emas Gelap */
}


/* RESPONSIVE */
@media (max-width: 992px) {
    .contact-grid-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .contact-form-box {
        padding: 20px;
    }
}

/* =========================================
   10. FOOTER
   ========================================= */
footer { background-color: #111; color: #888; padding: 40px 0; border-top: 3px solid var(--secondary-color); }
.footer-content { display: flex; justify-content: space-between; align-items: center; }
.f-logo h3 { color: var(--white); font-size: 1.2rem; margin: 0; }
.f-logo p { font-size: 0.8rem; }

/* =========================================
   11. RESPONSIVE MEDIA QUERIES
   ========================================= */

/* TABLET (Max 992px) */
@media (max-width: 992px) {
    .resource-grid-layout { grid-template-columns: repeat(2, 1fr); }
    .about-layout { grid-template-columns: 1fr; gap: 40px; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: 1fr; gap: 20px; divide-x: 0; divide-y: 1px solid rgba(255,255,255,0.2); }
    .trust-item { padding: 15px 0; }
    .contact-grid-layout { grid-template-columns: 1fr; }
}

/* MOBILE (Max 576px) */
@media (max-width: 576px) {
    /* Fonts & Headings */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    /* Nav & Burger */
    .burger { display: block; z-index: 1001; }
    nav ul {
        position: absolute; right: 0px; top: 0; height: 100vh; background-color: var(--primary-color);
        flex-direction: column; align-items: center; justify-content: space-around;
        width: 70%; transform: translateX(100%); transition: transform 0.5s ease-in; z-index: 1000;
        padding: 50px 0;
    }
    nav ul li { margin: 0; }
    nav-active { transform: translateX(0%); }
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

    /* Grids to Single Column */
    .resource-grid-layout { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .product-grid-4 { grid-template-columns: 1fr; }
    
    /* Blog Mobile Fixes */
    .card-image-grid { height: 200px; }
    .topic-filter { flex-direction: column; }
    .topic-filter-links { flex-direction: column; align-items: center; width: 100%; }
    .topic-filter-links a { width: 100%; max-width: 250px; text-align: center; }

    /* General */
    .container { padding: 0 20px; }
    .contact-details { flex-direction: column; gap: 20px; }
    .footer-content { flex-direction: column; text-align: center; gap: 20px; }
}