:root {
    --primary-color: #1a3a6e;
    --secondary-color: #e67e22;
    --accent-color: #3498db;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #6c757d;
    --white: #fff;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
    overflow-x: hidden;
}

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

/* NAVBAR */
.navbar {
    background: var(--primary-color);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
    font-weight: bold;
}

.logo img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.logo span {
    font-size: 0.9rem;
    line-height: 1.2;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

.btn-nav {
    background: #d35400;
    padding: 8px 16px;
    border-radius: 30px;
}

.btn-nav:hover {
    background: #a04000;
    color: white !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 10px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 75px;
        flex-direction: column;
        background: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
        gap: 15px;
    }
    .nav-menu.active {
        left: 0;
    }
    .navbar .container {
        justify-content: space-between;
    }
}

.blog-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 120px 30px 50px;
}

@media (max-width: 768px) {
    .blog-container { padding: 100px 20px 40px; }
}

.breadcrumb {
    padding: 0.8rem 0;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}
.breadcrumb a { 
    color: #0d3b6e; 
    text-decoration: none;
}
.breadcrumb .separator { margin: 0 0.3rem; color: #555; }
.breadcrumb .current { color: #333; font-weight: 500; }

.update-badge {
    background: #2e7d32;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.blog-back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-decoration: none;
}
.blog-back-link:hover { text-decoration: none; }

.calculator-box {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8edf5 100%);
    border-radius: 20px;
    padding: 1.2rem;
    margin: 1.5rem 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(26,58,110,0.2);
}
.calculator-box h2 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.method-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.method-btn {
    flex: 1;
    padding: 12px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    transition: var(--transition);
    color: #222;
    min-height: 48px;
}
.method-btn.active {
    border-color: #d35400;
    background: #d35400;
    color: #ffffff;
}
.calculator-form-group { margin-bottom: 1rem; }
.calculator-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: #222;
}
.calculator-form-group select, 
.calculator-form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 0.95rem;
    background: white;
}
.calculator-result {
    background: white;
    border-radius: 15px;
    padding: 1.2rem;
    margin-top: 1.2rem;
    text-align: center;
    border: 2px solid var(--primary-color);
}
.calculator-result .total-price {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--primary-color);
}
.calculator-result .detail-price {
    font-size: 0.8rem;
    color: #555;
    margin-top: 0.3rem;
}
.calculator-result .estimation-time {
    background: #e8f5e9;
    padding: 0.5rem;
    border-radius: 8px;
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: #1b5e20;
}
.btn-wa {
    background: #25D366;
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    margin-top: 1rem;
    cursor: pointer;
    transition: var(--transition);
    min-height: 48px;
}
.btn-wa:hover { background: #128C7E; }
.calculator-note {
    font-size: 0.7rem;
    color: #555;
    margin-top: 0.8rem;
    text-align: center;
}
.price-hint { 
    font-size: 0.7rem; 
    color: #555; 
    margin-top: 0.2rem; 
}

@media (min-width: 768px) {
    .calculator-box { padding: 1.8rem; }
    .form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .calculator-result .total-price { font-size: 2rem; }
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
    margin: 1.2rem 0;
}
.info-card {
    background: #f0f7ff;
    padding: 0.8rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}
.info-card h3 { color: var(--primary-color); margin-bottom: 0.3rem; font-size: 1rem; }
.info-card p { color: #222; }

.illustration-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.5rem 0;
    align-items: center;
}
.illustration-img {
    flex: 1;
    min-width: 200px;
    text-align: center;
}
.illustration-img img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.illustration-img .caption {
    font-size: 0.7rem;
    color: #555;
    margin-top: 0.3rem;
}
.illustration-text {
    flex: 1.5;
    color: #222;
}
.illustration-bg {
    background: #f5f7fa;
    padding: 1rem;
    border-radius: 12px;
}

.faq-container { margin: 1.5rem 0; }
.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 0.8rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #ddd;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    background: #f5f5f5;
    border: none;
    text-align: left;
    padding: 1rem 1.2rem;
    font-weight: 600;
    color: #0d3b6e;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 52px;
}
.faq-question i { transition: transform 0.3s; color: #d35400; }
.faq-question.active i { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.2rem;
    color: #222;
}
.faq-answer.show { max-height: 300px; padding: 0 1.2rem 1rem 1.2rem; }

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.85rem;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.price-table th {
    background: var(--primary-color);
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: 600;
}
.price-table td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: center;
    color: #222;
}
.price-table tr:nth-child(even) {
    background: #f9f9f9;
}
.price-table tr:hover {
    background: #f0f7ff;
}
.table-responsive {
    overflow-x: auto;
    margin: 1rem 0;
}

.area-grid-detail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.area-box {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #ddd;
}
.area-box h3 {
    color: #0d3b6e;
    border-left: 3px solid #d35400;
    padding-left: 10px;
    margin-top: 0;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}
.area-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.area-tags span {
    background: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    border: 1px solid #ccc;
    color: #222;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: white;
    padding: 60px 0 0;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.footer-col h3 {
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #d35400;
}
.footer-col p, .footer-col li {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer-col a:hover { color: #f39c12; }

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 20px;
    text-align: center;
    font-size: 0.8rem;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    z-index: 100;
    transition: var(--transition);
    text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); color: white; background: #128C7E; }

.btn-wa-konsultasi {
    display: inline-block;
    background: #25D366;
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    min-height: 48px;
}
.btn-wa-konsultasi:hover { background: #128C7E; }

.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: #d35400;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}
.scroll-top.active { opacity: 1; visibility: visible; }
.scroll-top:hover { background: #a04000; }

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

@media (max-width: 768px) {
    .method-selector { flex-direction: column; }
    .whatsapp-float { width: 50px; height: 50px; font-size: 1.5rem; bottom: 20px; right: 20px; }
    .scroll-top { width: 44px; height: 44px; bottom: 80px; right: 20px; }
    .blog-container h1 { font-size: 1.5rem; }
    .illustration-row { flex-direction: column; }
    .price-table th, .price-table td { padding: 6px; font-size: 0.7rem; }
    .area-grid-detail { grid-template-columns: 1fr; }
    
    .method-btn, .btn-wa, .btn-primary, .btn-secondary {
        padding: 14px 12px;
        min-height: 48px;
    }
    
    .nav-menu a {
        padding: 12px 0;
        display: block;
    }
    
    .faq-question {
        padding: 16px;
        min-height: 56px;
    }
    
    .btn-wa-konsultasi {
        padding: 14px 25px;
        min-height: 52px;
    }
    
    .social-links a {
        width: 44px;
        height: 44px;
    }
}

/* Prevent horizontal scroll */
img, video, iframe, .table-responsive {
    max-width: 100%;
    height: auto;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1001;
}
.skip-link:focus {
    top: 0;
}

:focus {
    outline: 3px solid #d35400;
    outline-offset: 2px;
}



.social-links a {
    text-decoration: none;
}

/* ===== BLOG SECTION STYLES ===== */
.blog {
    padding: 60px 0;
    background-color: var(--light-gray, #f8f9fa);
}

.section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    color: var(--primary-color, #1a3a6e);
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color, #e67e22), var(--accent-color, #3498db));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-light, #6c757d);
    font-size: clamp(0.85rem, 3vw, 1rem);
}

/* Blog Grid - Responsive */
.blog-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

/* Project / Blog Card */
.project-card {
    background: var(--white, #fff);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.project-card:hover img {
    transform: scale(1.03);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color, #1a3a6e);
    line-height: 1.4;
}

.project-info p {
    font-size: 0.85rem;
    color: var(--text-light, #6c757d);
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Button within card */
.project-info .btn,
.project-info .btn-primary {
    display: inline-block;
    padding: 8px 18px;
    background: var(--secondary-color, #e67e22);
    color: white;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.project-info .btn-primary:hover {
    background: #d35400;
    transform: translateY(-2px);
}

/* CTA Button (Lihat Semua Artikel) */
.portfolio-cta {
    text-align: center;
    margin-top: 30px;
}

.portfolio-cta .btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color, #1a3a6e);
    color: white;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.portfolio-cta .btn-primary:hover {
    background: var(--secondary-color, #e67e22);
    transform: translateY(-2px);
}

/* ===== RESPONSIVE (MOBILE FRIENDLY) ===== */
@media (max-width: 768px) {
    .blog {
        padding: 40px 0;
    }
    
    .blog-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-card img {
        height: 160px;
    }
    
    .project-info {
        padding: 15px;
    }
    
    .project-info h3 {
        font-size: 1rem;
    }
    
    .section-subtitle {
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    .portfolio-cta .btn-primary {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}

/* ===== PERFORMANCE OPTIMIZATION ===== */
/* Lazy loading images */
.project-card img {
    loading: lazy;
}

/* Reduce motion if user prefers */
@media (prefers-reduced-motion: reduce) {
    .project-card,
    .project-card img,
    .project-info .btn-primary {
        transition: none;
    }
    
    .project-card:hover {
        transform: none;
    }
}

/* PERBAIKAN KONTRAST - Teks */
.section-subtitle {
    color: #3d3d3d !important;
}

p, li, .blog-container p, .info-card p {
    color: #1a1a1a;
}

.update-badge + div p,
.breadcrumb .current,
.price-hint,
.calculator-note {
    color: #2c3e50;
}

/* TOMBOL NAV & METHOD */
.btn-nav, 
.btn-primary,
.method-btn.active {
    color: #ffffff !important;
    background-color: #c0392b !important;
}

/* TOMBOL WHATSAPP - HIJAU TERANG TAPI LOLOS KONTRAK */
.btn-wa,
.btn-wa-konsultasi {
    background-color: #25D366 !important;
    color: #1a1a1a !important;  /* Teks hitam agar kontras */
    font-weight: 700 !important;
    border: none !important;
}
/* FLOATING WHATSAPP - Hijau terang dengan teks PUTIH (kayak tadi) */
.whatsapp-float {
    background-color: #25D366 !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
}

/* EFEK HOVER - Jadi hijau gelap */
.btn-wa:hover,
.btn-wa-konsultasi:hover,
.whatsapp-float:hover {
    background-color: #128C7E !important;
    color: #ffffff !important;
}
/* FORCE REMOVE UNDERLINE */
a { text-decoration: none !important; }
a:hover { text-decoration: underline !important; }
.btn-primary:hover, .btn-secondary:hover, .btn-nav:hover, .btn-cta:hover, .apx-btn:hover, .promo-btn:hover, .btn-wa:hover, .btn-articles-all:hover { text-decoration: none !important; }
