/*
Theme Name: Tamam Travel Pro
Theme URI: https://www.tamamtravel.id
Author: Lead WordPress Architect
Author URI: https://www.tamamtravel.id
Description: Tema WordPress khusus Travel Umroh & Haji Khusus untuk Tamam Travel. Super ringan, SEO Friendly, integrasi Open Graph WhatsApp otomatis, Keamanan Tinggi, dan Full Customizer.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: tamam-travel
*/

:root {
    --primary: #0f766e;       /* Hijau Emerald/Teal Elegan (Bisa diubah via Customizer) */
    --primary-dark: #0b5852;
    --accent: #d97706;        /* Emas/Gold hangat khas Umroh & Haji */
    --accent-hover: #b45309;
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
    --transition: all 0.25s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- TOPBAR --- */
.topbar {
    background-color: var(--primary-dark);
    color: var(--white);
    font-size: 0.85rem;
    padding: 8px 0;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.badge-izin {
    background: rgba(255, 255, 255, 0.15);
    padding: 3px 10px;
    border-radius: 50px;
    font-weight: 600;
}

/* --- HEADER & NAVIGASI --- */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.site-branding img {
    max-height: 54px;
    width: auto;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}

.main-nav a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
}

.main-nav a:hover {
    color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white) !important;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white) !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--primary);
    cursor: pointer;
}

/* --- HERO SECTION (JEJAK IMANI STYLE) --- */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(11, 88, 82, 0.92), rgba(15, 118, 110, 0.85)), var(--hero-bg, url('https://images.unsplash.com/photo-1565552645632-d725f8bfc19a?auto=format&fit=crop&w=1600&q=80')) center/cover no-repeat;
    color: var(--white);
    padding: 90px 0 110px;
}

.hero-content {
    max-width: 720px;
}

.hero-tag {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 2.75rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* --- TRUST FEATURES BAR --- */
.trust-bar {
    margin-top: -50px;
    position: relative;
    z-index: 10;
    margin-bottom: 60px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.trust-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.trust-item h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.trust-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* --- SECTION HEADINGS --- */
.section-padding {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 45px;
}

.section-subtitle {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
}

/* --- PAKET UMROH & HAJI CARDS --- */
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.package-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.package-card:hover {
    transform: translateY(-6px);
}

.package-thumb {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #e2e8f0;
}

.package-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.package-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

.package-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.package-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-main);
}

.package-meta {
    list-style: none;
    margin-bottom: 20px;
    border-top: 1px dashed var(--border);
    border-bottom: 1px dashed var(--border);
    padding: 12px 0;
}

.package-meta li {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.package-meta li strong {
    color: var(--text-main);
}

.package-price-box {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
}

.price-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

.price-amount {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
}

/* --- SINGLE POST & SIDEBAR (5 POPULER + PREV/NEXT) --- */
.single-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    padding: 50px 0;
}

.post-article {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.entry-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 15px;
}

.entry-meta {
    display: flex;
    gap: 18px;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.featured-image {
    margin-bottom: 28px;
    border-radius: var(--radius);
    overflow: hidden;
}

.entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.entry-content p, .entry-content ul, .entry-content ol {
    margin-bottom: 20px;
}

.entry-content h2, .entry-content h3 {
    margin: 30px 0 15px;
    color: var(--primary-dark);
}

/* Navigasi Next & Previous Post */
.post-navigation-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border);
}

.nav-card {
    background: var(--bg-light);
    padding: 18px;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.nav-card:hover {
    border-color: var(--primary);
    background: #f0fdfa;
}

.nav-card.next-post {
    text-align: right;
}

.nav-direction {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 6px;
}

.nav-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Sidebar 5 Postingan Terpopuler */
.sidebar-widget {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    position: sticky;
    top: 100px;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.popular-list {
    list-style: none;
    counter-reset: pop-counter;
}

.popular-item {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.popular-item:last-child {
    border-bottom: none;
}

.popular-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.popular-thumb {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-info h4 {
    font-size: 0.95rem;
    line-height: 1.35;
    margin-bottom: 5px;
}

.popular-info h4 a {
    color: var(--text-main);
}

.popular-info h4 a:hover {
    color: var(--primary);
}

.popular-views {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* --- FOOTER & FLOATING WA --- */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 70px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #cbd5e1;
}

.footer-links a:hover {
    color: var(--accent);
}

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

.floating-wa {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25d366;
    color: #fff !important;
    padding: 14px 22px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
}

.floating-wa:hover {
    transform: scale(1.05);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 900px) {
    .single-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .menu-toggle {
        display: block;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .main-nav.active {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .post-navigation-box {
        grid-template-columns: 1fr;
    }
}