/*
Theme Name: InfoJasa Theme
Theme URI: https://infojasa.id
Author: Anda
Description: Tema WordPress khusus Direktori Bisnis - Clean & Modern
Version: 2.0
Text Domain: infojasa
*/

/* --- VARIABLES & RESET --- */
:root {
    --primary-color: #0056b3; /* Biru khas bisnis */
    --primary-hover: #004494;
    --accent-color: #ff9800; /* Oranye untuk CTA */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-hover: 0 10px 20px rgba(0,0,0,0.1);
    --radius: 8px;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- BUTTONS --- */
.btn {
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

/* --- HEADER & NAVIGATION --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-light);
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--text-dark);
}

.main-menu {
    display: flex;
    gap: 30px;
}

.main-menu a {
    font-weight: 600;
    color: var(--text-dark);
}

.main-menu a:hover {
    color: var(--primary-color);
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, rgba(0,86,179,0.9), rgba(0,40,85,0.8)), url('https://picsum.photos/seed/office/1920/600') no-repeat center center/cover;
    padding: 80px 0 100px; /* Padding bawah lebih besar karena ada tags */
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.search-box {
    background: var(--white);
    padding: 10px;
    border-radius: 50px;
    display: flex;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
    outline: none;
}

.search-box button {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 0 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #e68900;
}

/* --- FITUR: PENCARIAN POPULER (TAGS) --- */
.search-tags {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.tag-label {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    font-size: 0.9rem;
}

.search-tags a {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: 0.3s;
}

.search-tags a:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* --- KATEGORI POPULER --- */
.categories-section {
    padding: 60px 0;
    background: var(--white);
    margin-top: -30px; /* Overlap effect */
    position: relative;
    z-index: 10; /* Di atas hero */
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.03);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.section-header .divider {
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 auto;
    border-radius: 2px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    text-align: center;
}

.cat-item {
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all 0.3s;
    cursor: pointer;
}

.cat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.cat-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.cat-name {
    font-weight: 600;
    font-size: 0.95rem;
}

/* --- JASA & PRODUK TERBARU --- */
.latest-listing {
    padding: 60px 0;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

.card-image {
    position: relative;
    height: 180px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,86,179, 0.9);
    color: var(--white);
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.4;
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rating {
    color: #ffc107;
    font-size: 0.9rem;
}

.verified {
    color: #28a745;
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- ARTIKEL TERBARU --- */
.blog-section {
    padding: 60px 0;
    background: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: transparent;
    box-shadow: none;
    border: none;
}
        
.blog-card .card-image {
    width: 120px;
    height: 90px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.blog-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .card-image img {
    transform: scale(1.1);
}

.blog-card .card-title {
    font-size: 1rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.blog-date {
    font-size: 0.75rem;
    color: #999;
}

/* --- FOOTER --- */
footer {
    background: #1a1a1a;
    color: #dcdcdc;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.subscribe-form {
    display: flex;
    gap: 10px;
}

.subscribe-form input {
    padding: 10px;
    border-radius: 4px;
    border: none;
    flex: 1;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

/* --- RESPONSIVE (HP & TABLET) --- */

/* Tablet */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Header */
    .nav-main {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Hero */
    .hero h1 {
        font-size: 1.8rem;
    }

    /* Search Box Fix (Stack Vertikal) */
    .search-box {
        flex-direction: column;
        background: transparent; /* Background transparan biar menyatu di HP */
        box-shadow: none;
        gap: 10px;
    }

    .search-box input {
        width: 100%;
        background: var(--white);
        border-radius: 50px;
        border: 1px solid #ddd;
    }
    
    .search-box button {
        width: 100%;
        border-radius: 50px;
        padding: 12px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    }

    /* Tags di HP */
    .search-tags {
        gap: 8px;
    }
    .search-tags a {
        font-size: 0.8rem;
        padding: 5px 12px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    /* Blog Card: Gambar jadi di atas teks */
    .blog-card {
        flex-direction: column;
    }
    .blog-card .card-image {
        width: 100%;
        height: 200px;
    }

    /* Grids */
    .category-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 kolom di HP agar muat icon */
        gap: 15px;
    }
}

/* --- HALAMAN DETAIL (SINGLE LISTING) --- */

/* Header Listing */
.listing-header {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.lh-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 20px;
}

.lh-title h1 { margin: 0; font-size: 2rem; color: var(--text-dark); }
.lh-cat { color: var(--primary-color); font-weight: 600; text-transform: uppercase; font-size: 0.9rem; }
.lh-badges { display: flex; gap: 10px; }

.lh-meta { display: flex; align-items: center; gap: 30px; }
.rating-stars { color: #ffc107; }
.review-count { color: #666; font-size: 0.9rem; margin-left: 5px; }

/* Layout Grid Detail */
.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

/* Main Cards */
.main-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.section-title { font-size: 1.4rem; margin-bottom: 20px; border-bottom: 2px solid #f0f0f0; color: var(--text-dark); }

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.g-main { grid-row: 1 / 3; grid-column: 1 / 2; }
.g-sub-1 { grid-row: 1 / 2; grid-column: 2 / 3; }
.g-sub-2 { grid-row: 2 / 3; grid-column: 2 / 3; position: relative; }

.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* Review Summary */
.review-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}
.big-rating { font-size: 3rem; font-weight: bold; color: var(--text-dark); line-height: 1; }

/* Sidebar Sticky */
.sidebar-sticky { position: sticky; top: 20px; }

.contact-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.contact-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    color: white;
}
.btn-call { background: #28a745; }
.btn-wa { background: #25D366; }

.contact-details {
    margin: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.contact-info-row { display: flex; gap: 15px; margin-bottom: 15px; align-items: flex-start; }
.contact-info-row i { color: var(--primary-color); margin-top: 5px; }
.contact-text { font-size: 0.9rem; color: #555; display: block; }
.contact-link { color: var(--primary-color); font-size: 0.9rem; text-decoration: none; }
.contact-link:hover { text-decoration: underline; }

.hours-title { margin-bottom: 10px; color: var(--text-dark); }

.hours-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-top: 15px; }
.hours-table td { padding: 8px 0; border-bottom: 1px solid #eee; }
.day { font-weight: 600; color: var(--text-dark); }
.time { color: var(--text-light); text-align: right; }

.map-embed { width: 100%; height: 250px; border-radius: 8px; overflow: hidden; margin-top: 20px; }

/* Responsive Detail Page */
@media(max-width: 900px) {
    .detail-grid { grid-template-columns: 1fr; }
    .sidebar-sticky { position: static; }
}
@media(max-width: 768px) {
    .gallery-grid { grid-template-columns: 1fr; height: auto; }
    .g-main, .g-sub-1, .g-sub-2 { grid-column: 1 / -1; height: 200px; display: none; }
    .g-main { display: block; }
}