        :root {
            --primary-color: #d4af37; /* Warna Emas Besteel */
            --dark-bg: #1a1a1a;
            --darker-bg: #111111;
            --text-light: #f5f5f5;
            --text-dark: #333333;
            --gray-bg: #f9f9f9;
        }

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

        body {
            font-family: 'Open Sans', sans-serif;
            color: var(--text-dark);
            line-height: 1.6;
            background-color: #fff;
        }

        h1, h2, h3, h4, h5, h6 {
            font-family: 'Montserrat', sans-serif;
            font-weight: 700;
        }

        a { text-decoration: none; color: inherit; transition: 0.3s; }
        ul { list-style: none; }

        /* --- HEADER & NAV --- */
        header {
            background-color: var(--darker-bg);
            padding: 15px 5%;
            position: sticky;
            top: 0;
            z-index: 1000;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #333;
        }

        .logo {
            color: white;
            font-size: 24px;
            font-weight: 800;
            letter-spacing: 1px;
        }
        .logo span { color: var(--primary-color); }

        nav ul { display: flex; gap: 25px; }
        nav a { color: #ccc; font-size: 14px; font-weight: 600; text-transform: uppercase; }
        nav a:hover, nav a.active { color: var(--primary-color); }

        .btn-contact {
            border: 1px solid var(--primary-color);
            color: var(--primary-color);
            padding: 8px 20px;
            border-radius: 4px;
            font-size: 14px;
            font-weight: 600;
        }
        .btn-contact:hover { background: var(--primary-color); color: white; }

        /* --- HERO SECTION --- */
        .hero {
            background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
            background-size: cover;
            background-position: center;
            height: 80vh;
            display: flex;
            align-items: center;
            padding: 0 5%;
            color: white;
        }

        .hero-content { max-width: 600px; }
        .hero-subtitle { color: var(--primary-color); font-weight: 600; letter-spacing: 2px; margin-bottom: 10px; display: block;}
        .hero h1 { font-size: 48px; line-height: 1.2; margin-bottom: 20px; }
        .hero p { font-size: 18px; margin-bottom: 30px; color: #ddd; }

        .hero-buttons { display: flex; gap: 15px; }
        .btn-primary {
            background: var(--primary-color);
            color: white;
            padding: 12px 30px;
            border-radius: 4px;
            font-weight: 700;
            border: none;
            cursor: pointer;
        }
        .btn-primary:hover { background: #b5952f; }
        
        .btn-outline {
            border: 1px solid white;
            color: white;
            padding: 12px 30px;
            border-radius: 4px;
            font-weight: 700;
        }
        .btn-outline:hover { background: white; color: black; }

        /* --- SERVICES SECTION --- */
        .services { padding: 80px 5%; background: white; text-align: center; }
        .section-title { font-size: 32px; margin-bottom: 10px; color: var(--dark-bg); }
        .section-desc { color: #666; max-width: 700px; margin: 0 auto 50px; }

        .service-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
        }

        .service-card {
            background: white;
            border: 1px solid #eee;
            border-radius: 8px;
            overflow: hidden;
            transition: transform 0.3s;
            text-align: left;
        }
        .service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
        .service-img { height: 200px; background: #ddd; background-size: cover; background-position: center; }
        .service-info { padding: 25px; }
        .service-info h3 { margin-bottom: 10px; font-size: 20px; }
        .service-info p { font-size: 14px; color: #666; margin-bottom: 15px; }
        .read-more { color: var(--primary-color); font-weight: 600; font-size: 14px; }

        /* --- CALCULATOR SECTION (INTEGRATED STYLE) --- */
        .calculator-section {
            background: var(--dark-bg);
            padding: 80px 5%;
            color: white;
            scroll-margin-top: 80px; /* Untuk smooth scroll */
        }

        .calc-header { text-align: center; margin-bottom: 40px; }
        .calc-header h2 { color: white; }
        .calc-header p { color: #aaa; }

        /* Customizing the Calculator Container for Besteel Theme */
        .container {
            max-width: 1000px;
            margin: 0 auto;
            background: white; /* Keep calculator white for readability */
            border-radius: 10px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            overflow: hidden;
            color: var(--text-dark); /* Reset text color inside calculator */
        }

        .header-calc {
            background: var(--darker-bg);
            color: white;
            padding: 25px;
            text-align: center;
            border-bottom: 3px solid var(--primary-color);
        }
        .header-calc h1 { font-size: 24px; margin-bottom: 5px; color: white; }
        .header-calc p { font-size: 14px; opacity: 0.8; }

        .tabs {
            display: flex;
            background: #f1f1f1;
            border-bottom: 1px solid #ddd;
        }
        .tab-btn {
            flex: 1;
            padding: 18px;
            border: none;
            background: transparent;
            cursor: pointer;
            font-size: 15px;
            font-weight: 700;
            color: #666;
            transition: all 0.3s;
            font-family: 'Montserrat', sans-serif;
            text-transform: uppercase;
        }
        .tab-btn.active {
            background: white;
            color: var(--primary-color);
            border-bottom: 3px solid var(--primary-color);
        }
        .tab-btn:hover:not(.active) { background: #e9e9e9; }

        .tab-content { display: none; padding: 30px; }
        .tab-content.active { display: block; animation: fadeIn 0.4s; }

        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

        .form-group { margin-bottom: 20px; }
        label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--dark-bg); font-size: 14px; }
        
        select, input[type="number"] {
            width: 100%;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 14px;
            background: #fafafa;
        }
        select:focus, input:focus { outline: none; border-color: var(--primary-color); background: white; }

        .input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

        .calculate-btn {
            width: 100%;
            padding: 15px;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: 0.3s;
            margin-top: 10px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .calculate-btn:hover { background: #b5952f; transform: translateY(-2px); }

        .result-box {
            margin-top: 25px;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 8px;
            border-left: 5px solid var(--primary-color);
            display: none;
        }
        .result-box.show { display: block; }

        .result-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed #ddd; font-size: 14px; }
        .result-item:last-child { border-bottom: none; }
        .result-label { color: #666; }
        .result-value { font-weight: 700; color: var(--dark-bg); }

        .total-price {
            margin-top: 15px;
            padding: 15px;
            background: var(--dark-bg);
            color: white;
            border-radius: 6px;
            text-align: center;
        }
        .total-price .label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }
        .total-price .amount { font-size: 24px; font-weight: 700; color: var(--primary-color); margin-top: 5px; }

        .info-note {
            margin-top: 15px;
            font-size: 12px;
            color: #856404;
            background: #fff3cd;
            padding: 10px;
            border-radius: 4px;
        }

        /* --- ABOUT (TENTANG) --- */
        .about { padding: 80px 5%; background: white; text-align: center; }
        .about-text { max-width: 800px; margin: 0 auto; color: #555; font-size: 16px; }

        /* --- ARTIKEL --- */
        .articles-section { padding: 80px 5%; background: white; }

        /* --- PORTFOLIO --- */
        .portfolio { padding: 80px 5%; background: var(--gray-bg); }

/* ================================================================
   PERBAIKAN & TAMBAHAN (revisi multi-halaman)
   ================================================================ */

/* FIX: dulu jika kartu (service/portfolio/artikel) jumlahnya sedikit,
   grid auto-fit membuatnya melebar penuh & gambar terlihat memanjang.
   Sekarang lebar kartu dibatasi & di-tengah-kan. */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
    gap: 30px;
    justify-content: center;
}

/* Link card supaya seluruh kartu bisa diklik & tidak mewarisi style <a> aneh */
a.service-card { display: block; }
a.service-card:hover .service-img { filter: brightness(0.95); }

.read-more { display: inline-block; margin-top: 5px; }

/* --- Section header umum (dipakai di halaman listing) --- */
.page-hero {
    background: var(--darker-bg);
    color: white;
    padding: 60px 5% 40px;
    text-align: center;
}
.page-hero h1 { color: white; font-size: 34px; margin-bottom: 10px; }
.page-hero p { color: #bbb; max-width: 600px; margin: 0 auto; }
.breadcrumb { font-size: 13px; color: #888; margin-top: 15px; }
.breadcrumb a { color: var(--primary-color); }

.listing-section { padding: 60px 5% 90px; background: white; }

.empty-state { text-align: center; color: #888; padding: 40px 0; grid-column: 1 / -1; }

.section-footer-link { text-align: center; margin-top: 40px; }
.btn-outline-dark {
    display: inline-block;
    border: 1px solid var(--dark-bg);
    color: var(--dark-bg);
    padding: 10px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
}
.btn-outline-dark:hover { background: var(--dark-bg); color: white; }

/* --- Halaman detail artikel --- */
.article-detail-hero {
    height: 45vh;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-color: #ddd;
}
.article-detail-body { max-width: 800px; margin: -60px auto 0; background: white; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); padding: 40px; position: relative; }
.article-detail-body .article-meta { color: #888; font-size: 13px; margin-bottom: 10px; }
.article-detail-body h1 { font-size: 30px; margin-bottom: 20px; color: var(--dark-bg); }
.article-detail-body .article-content { color: #444; font-size: 16px; line-height: 1.9; }
.article-detail-body .article-content p { margin-bottom: 16px; }
.article-detail-wrap { background: var(--gray-bg); padding-bottom: 80px; }
.back-link { display: inline-block; margin: 30px 5% 0; color: var(--primary-color); font-weight: 600; }

/* --- Kalkulator sebagai halaman sendiri --- */
.calc-page { padding: 60px 5% 90px; background: var(--dark-bg); }

/* --- Loading skeleton kecil supaya tidak blank saat fetch --- */
.loading-text { text-align: center; color: #999; padding: 30px; grid-column: 1/-1; }

@media (max-width: 768px) {
    .article-detail-body { margin-top: -30px; padding: 25px; }
    .article-detail-hero { height: 30vh; }
}

/* --- Nav mobile (hamburger) --- */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 22px;
    padding: 8px 10px;
    line-height: 1;
    cursor: pointer;
}
@media (max-width: 768px) {
    .nav-toggle { display: block; order: 2; }
    header { flex-wrap: wrap; }
    .btn-contact { order: 3; }
    nav#mainNav {
        display: none;
        order: 4;
        width: 100%;
        background: var(--darker-bg);
    }
    nav#mainNav.open { display: block; }
    nav#mainNav ul { flex-direction: column; gap: 0; padding: 10px 0; }
    nav#mainNav ul li a { display: block; padding: 12px 5%; }
    .hero h1 { font-size: 32px; }
    .input-row { grid-template-columns: 1fr; }
}

/* ================================================================
   FOOTER — desain baru
   ================================================================ */
.footer { background: var(--darker-bg); color: #999; font-size: 14px; }

.footer-cta {
    background: linear-gradient(135deg, #232323, #161616);
    border-bottom: 1px solid #2c2c2c;
    padding: 40px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-cta-text h3 { color: white; font-size: 22px; margin-bottom: 6px; }
.footer-cta-text p { color: #aaa; font-size: 14px; }
.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    white-space: nowrap;
    padding: 13px 28px;
}

.footer-main { padding: 60px 5% 30px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 45px;
}
.footer-col h4 {
    color: white;
    margin-bottom: 22px;
    font-size: 15px;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 12px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 30px; height: 2px;
    background: var(--primary-color);
}
.footer-brand p { line-height: 1.8; margin-top: 14px; color: #999; }

.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a {
    width: 38px; height: 38px;
    border: 1px solid #333;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #ccc;
    transition: 0.3s;
}
.footer-social a:hover { background: var(--primary-color); border-color: var(--primary-color); color: white; transform: translateY(-3px); }

.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: #999; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.footer-col ul li a i { font-size: 10px; color: var(--primary-color); }
.footer-col ul li a:hover { color: var(--primary-color); padding-left: 3px; }

.footer-contact-list li { margin-bottom: 16px; }
.footer-contact-list li a,
.footer-contact-list li { display: flex; align-items: flex-start; gap: 12px; color: #bbb; line-height: 1.5; }
.footer-contact-list li a:hover { color: var(--primary-color); }
.footer-icon-badge {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 8px;
    background: #232323;
    color: var(--primary-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
}

.footer-map {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #2c2c2c;
    line-height: 0;
}
.footer-map iframe { width: 100%; height: 170px; display: block; }

.footer-bottom {
    border-top: 1px solid #2a2a2a;
    padding: 22px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #777;
}
.footer-bottom-tag i { color: var(--primary-color); }

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-cta { flex-direction: column; align-items: flex-start; }
    .footer-cta-btn { width: 100%; justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ================================================================
   PORTFOLIO — thumbnail bisa diklik + lightbox sebelum/sesudah
   ================================================================ */
.service-card.pf-card { cursor: pointer; position: relative; }
.pf-card .service-img { position: relative; }
.pf-card .pf-zoom-hint {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.25s;
    color: white;
    font-size: 26px;
}
.pf-card:hover .pf-zoom-hint { opacity: 1; }
.pf-card .pf-ba-tag {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--primary-color);
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.92);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 30px 5%;
}
.lightbox.show { display: flex; }
.lightbox-box {
    background: white;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.lightbox-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    z-index: 5;
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
}
.lightbox-close:hover { background: var(--primary-color); }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    z-index: 5;
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
}
.lightbox-nav:hover { background: var(--primary-color); }
.lightbox-prev { left: -55px; }
.lightbox-next { right: -55px; }
@media (max-width: 1000px) {
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

.lightbox-media {
    background: #111;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 60vh;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}
.lightbox-media img.lightbox-single { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

.lightbox-info { padding: 28px 32px 32px; }
.lightbox-info small { color: var(--primary-color); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: 12px; }
.lightbox-info h3 { font-size: 24px; margin: 10px 0 14px; line-height: 1.3; }
.lightbox-info p { color: #555; font-size: 15.5px; line-height: 1.85; }
@media (max-width: 560px) {
    .lightbox-media, .ba-compare { aspect-ratio: 4 / 3; }
}

/* Before / after compare slider */
.ba-compare {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 60vh;
    overflow: hidden;
    user-select: none;
    border-radius: 12px 12px 0 0;
}
.ba-compare img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.ba-after { position: relative; width: 100%; height: 100%; }
.ba-before {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
    border-right: 3px solid var(--primary-color);
}
.ba-before img {
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.ba-slider {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: ew-resize;
    z-index: 3;
}
.ba-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    cursor: ew-resize;
    margin-top: 0;
}
.ba-slider::-moz-range-thumb {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    cursor: ew-resize;
}
.ba-slider::-webkit-slider-runnable-track { background: transparent; }
.ba-label {
    position: absolute;
    top: 14px;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 4;
    pointer-events: none;
}
.ba-label-before { left: 14px; }
.ba-label-after { right: 14px; }

/* ================================================================
   TENTANG — halaman baru yang lebih hidup
   ================================================================ */
.about-intro { padding: 80px 5%; background: white; }
.about-intro-grid {
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}
.about-intro-image { position: relative; }
.about-intro-image img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.about-intro-badge {
    position: absolute;
    bottom: -22px; left: 24px;
    background: white;
    padding: 14px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex; align-items: center; gap: 12px;
    font-weight: 700;
    font-size: 14px;
    color: var(--dark-bg);
    max-width: calc(100% - 48px);
}
.about-intro-badge i { color: var(--primary-color); font-size: 22px; }

.about-intro-text .eyebrow {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 13px;
    display: block;
    margin-bottom: 10px;
}
.about-intro-text h2 { font-size: 30px; line-height: 1.3; margin-bottom: 20px; color: var(--dark-bg); }
.about-intro-text p { color: #555; font-size: 16px; text-align: left; white-space: pre-line; }

.values-section { padding: 80px 5%; background: var(--gray-bg); }
.values-grid {
    max-width: 1150px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}
.value-card {
    background: white;
    border-radius: 10px;
    padding: 32px 24px;
    text-align: left;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
    border-top: 3px solid transparent;
}
.value-card:hover { transform: translateY(-6px); border-top-color: var(--primary-color); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.value-card .value-icon {
    width: 54px; height: 54px;
    border-radius: 12px;
    background: rgba(212,175,55,0.12);
    color: var(--primary-color);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}
.value-card h3 { font-size: 17px; margin-bottom: 10px; color: var(--dark-bg); }
.value-card p { font-size: 14px; color: #666; line-height: 1.7; }

.about-cta {
    background: var(--darker-bg);
    background-image: linear-gradient(135deg, #1a1a1a, #232323);
    color: white;
    text-align: center;
    padding: 80px 5%;
}
.about-cta h2 { font-size: 28px; margin-bottom: 14px; }
.about-cta p { color: #bbb; max-width: 550px; margin: 0 auto 30px; }
.about-cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.about-cta-buttons .btn-primary,
.about-cta-buttons .btn-outline-dark {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
}
.about-cta-buttons .btn-outline-dark { border-color: #555; color: #eee; }
.about-cta-buttons .btn-outline-dark:hover { background: white; color: var(--dark-bg); }

@media (max-width: 900px) {
    .about-intro-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-intro-image img { height: 320px; }
    .values-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .values-grid { grid-template-columns: 1fr; }
    .lightbox-info { padding: 20px; }
}

