/* =========================================
   1. VARIABEL WARNA & FONT PT SBT
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
    --sbt-green: #105529; /* Hijau Gelap Utama */
    --sbt-gold: #eab535;  /* Emas Aksen */
    --text-dark: #333333;
}

body {
    font-family: 'Montserrat', 'Noto Sans SC', sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    margin: 0;
    padding: 0;
}

/* =========================================
   2. NAVBAR & BRAND LOGO
   ========================================= */
.navbar-sbt {
    position: absolute; 
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent; 
    padding: 20px 0;
    transition: all 0.3s ease-in-out;
}

/* Background putih BULAT (Circle) untuk Logo */
.navbar-brand img {
    background-color: #ffffff;
    width: 50px !important;      
    height: 50px !important;     
    object-fit: contain;         
    padding: 8px;                
    border-radius: 50%;          
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Teks Nama Perusahaan (Gradien Putih ke Emas) */
.brand-text {
    font-weight: 800;
    font-size: 14px; 
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #ffffff, var(--sbt-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.3)); 
    transition: all 0.3s ease;
}

/* =========================================
   3. MENU LINGKUNGAN (DESKTOP)
   ========================================= */
.navbar-sbt .nav-link {
    font-weight: 500; 
    color: #ffffff !important; 
    font-size: 13px;
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    padding: 8px 12px !important; 
    transition: color 0.3s;
}
.navbar-sbt .nav-link:hover {
    color: var(--sbt-gold) !important;
}
.navbar-sbt .dropdown-toggle::after {
    display: none; 
}
.nav-link i.fa-chevron-down {
    font-size: 11px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Dropdown Sub-menu */
@media (min-width: 992px) {
    .dropdown-menu {
        background-color: #ffffff;
        border: none;
        border-radius: 4px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        margin-top: 10px;
        padding: 10px 0;
        border-top: 3px solid var(--sbt-gold);
    }
}
.dropdown-item {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    padding: 10px 25px;
    text-transform: uppercase;
}
.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--sbt-green);
}

/* Pemilih Bahasa (Bendera) */
.lang-selector {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}
.lang-selector img {
    width: 24px;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.lang-selector i {
    font-size: 11px;
}

/* =========================================
   4. NAVBAR STATE (MOBILE OPEN)
   ========================================= */
.navbar-sbt.mobile-open {
    background-color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.navbar-sbt.mobile-open .nav-link,
.navbar-sbt.mobile-open .lang-selector,
.navbar-sbt.mobile-open .navbar-toggler i {
    color: var(--text-dark) !important;
}
/* Saat background putih, teks PT berubah jadi gradien hijau agar terlihat */
.navbar-sbt.mobile-open .brand-text {
    background: linear-gradient(to right, var(--sbt-green), #0b3d1d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 15px;
        padding: 10px 15px 20px 15px;
    }
    .navbar-nav .nav-item {
        margin-bottom: 5px;
    }
    .dropdown-menu {
        background-color: #ffffff;
        border: none;
        box-shadow: none;
        padding-left: 15px;
        border-left: 2px solid var(--sbt-green);
    }
    .dropdown-item {
        color: var(--text-dark) !important;
        font-size: 13px;
        padding: 8px 15px;
    }
}

/* =========================================
   5. HERO SECTION
   ========================================= */

.hero-sub {
    color: var(--sbt-gold);
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
}
.hero-title {
    font-size: 3.8rem;
    font-weight: 900; 
    line-height: 1.2;
    margin-bottom: 40px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .hero-section { 
        min-height: 100vh; 
        padding-top: 80px; 
        text-align: left; 
    }
    .hero-title { font-size: 2.5rem; }
    .hero-sub { font-size: 0.9rem; }
}

/* =========================================
   6. TOMBOL & WIDGET WA
   ========================================= */
.btn-sbt-primary {
    background-color: var(--sbt-gold);
    color: var(--sbt-green) !important;
    font-weight: 800;
    padding: 15px 35px;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    border: 2px solid var(--sbt-gold);
}
.btn-sbt-primary:hover {
    background-color: transparent;
    color: var(--sbt-gold) !important;
}
.btn-sbt-outline {
    background-color: transparent;
    color: #ffffff !important;
    font-weight: 700;
    padding: 15px 35px;
    border-radius: 4px;
    border: 2px solid #ffffff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}
.btn-sbt-outline:hover {
    background-color: #ffffff;
    color: var(--sbt-green) !important;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.3s;
}
.whatsapp-float:hover { 
    transform: scale(1.1); 
    color: #fff; 
}
.wa-badge {
    position: absolute;
    top: -2px; right: -2px;
    background-color: #ff3b30;
    font-size: 10px; font-weight: bold;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}
/* =========================================
   7. WIDGET FITUR (HIGHLIGHT SECTION)
   ========================================= */
.feature-widget-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -60px;
    margin-bottom: 50px;
}
.feature-widget {
    /* GRADASI TRANSPARAN PINDAH KE SINI */
    background: linear-gradient(135deg, rgba(8, 45, 22, 0.95) 0%, rgba(8, 45, 22, 0.75) 100%);
    
    /* EFEK KACA BURAM (GLASSMORPHISM) */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    border-bottom: 4px solid var(--sbt-gold);
    border-top: 1px solid rgba(255, 255, 255, 0.08); /* Pantulan cahaya tipis di atas kaca */
    padding: 0; 
    overflow: hidden; 
}

/* Pengaturan untuk Layar Komputer (Desktop) */
.feature-item {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: flex-start;
    text-align: center; 
    padding: 35px 15px; 
    position: relative;
    background: transparent;
    transition: background 0.3s ease;
    
    /* TAMBAHAN BARU: Agar ikon watermark tidak tumpah ke kotak sebelahnya */
    overflow: hidden; 
    z-index: 1; 
}

/* TAMBAHAN KODE BARU: Ikon Raksasa di Belakang (Watermark) */
.feature-bg-icon {
    position: absolute;
    bottom: -20px;       /* Posisikan di bawah */
    right: -15px;        /* Posisikan di pojok kanan */
    font-size: 160px;    /* Ukuran raksasa */
    color: rgba(255, 255, 255, 0.03); /* Sangat transparan (hanya 3% putih) */
    z-index: -1;         /* Lempar ke belakang teks */
    transform: rotate(-15deg); /* Miring sedikit agar dinamis */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Efek nyala dan bergerak saat disentuh mouse */
.feature-item:hover .feature-bg-icon {
    color: rgba(255, 255, 255, 0.08); 
    transform: rotate(0deg) scale(1.1);
}

/* Efek nyala tipis saat item disentuh mouse agar tetap interaktif */
.feature-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* Garis pemisah antar item */
.feature-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.15);
}

/* Ikon Fitur */
.feature-icon {
    background: linear-gradient(135deg, #65a30d, #4d7c0f); 
    color: #ffffff;
    width: 75px; 
    height: 75px; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px; 
    margin-right: 0; 
    margin-bottom: 18px; 
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg); 
}

/* Teks Judul & Deskripsi */
.feature-text {
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px; 
}
.feature-desc {
    color: #cbd5e1; 
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    max-width: 95%;
}

/* Penyesuaian Responsif KHUSUS Layar HP */
@media (max-width: 991.98px) {
    .feature-item:not(:last-child)::after {
        display: none; 
    }
    .feature-item {
        padding: 25px 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
    }
    .feature-item:last-child {
        border-bottom: none;
    }
    .feature-widget-wrapper {
        margin-top: -40px;
        padding: 0 15px;
    }
}

/* =========================================
   8. KONTAK KAMI SECTION
   ========================================= */
.text-sbt-gold { 
    color: var(--sbt-gold); 
}
.tracking-wide { 
    letter-spacing: 2px; 
}
/* Memaksa iframe Google Maps mengikuti ukuran kotak tanpa terpotong */
.maps-container iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 450px;
    border: 0;
}
/* Merapikan garis bawah pada list jam operasional */
.op-hours-list li:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* =========================================
   9. FOOTER SECTION
   ========================================= */
.footer-section {
    /* Gradasi super kontras: dari Hijau-Hitam pekat ke Hijau Cerah */
    background: linear-gradient(135deg, #03170a 0%, #0d5128 50%, #209d4c 100%);
    color: #e2e8f0;
    padding-top: 70px;
    position: relative;
    border-top: 5px solid var(--sbt-gold);
}
.footer-title {
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 25px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13.5px;
    transition: all 0.3s ease;
}
.footer-links a:hover {
    color: var(--sbt-gold);
    padding-left: 6px; /* Efek bergeser sedikit saat di-hover */
}
.footer-contact p {
    font-size: 13.5px;
    margin-bottom: 15px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
}
.footer-contact i {
    color: var(--sbt-gold);
    margin-top: 4px;
    width: 25px;
}
/* Ikon Sosial Media Bulat ala Referensi */
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    margin-right: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.footer-social a:hover {
    background-color: var(--sbt-gold);
    color: #082d16;
    transform: translateY(-3px);
}
/* Baris Bawah Copyright */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    margin-top: 50px;
    font-size: 13px;
    color: #94a3b8;
}
.footer-lang {
    font-weight: 600;
    letter-spacing: 1px;
}
/* =========================================
   10. WIDGET BACK TO TOP
   ========================================= */
.back-to-top {
    position: fixed;
    bottom: 100px; /* Posisinya pas di atas widget WhatsApp */
    right: 35px;
    background-color: var(--sbt-green);
    color: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    
    /* Efek sembunyi sebelum di-scroll */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background-color: var(--sbt-gold);
    color: var(--sbt-green);
    border-color: var(--sbt-gold);
    transform: translateY(-5px);
}
/* =========================================
   11. FOOTER LANG (BAHASA)
   ========================================= */
.footer-lang a {
    color: #94a3b8; /* Warna abu-abu redup */
    text-decoration: none;
    transition: all 0.3s ease;
}
.footer-lang a:hover {
    color: var(--sbt-gold); /* Berubah emas saat disentuh mouse */
}
.footer-lang a.active-lang {
    color: #ffffff; /* Warna putih terang untuk bahasa yang sedang aktif */
    font-weight: 800;
}
/* =========================================
   12. ABOUT & SERVICES SECTION
   ========================================= */
.about-section {
    padding: 80px 0;
    background-color: #ffffff;
}
.about-image-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.about-image-wrapper img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}
.about-image-wrapper:hover img {
    transform: scale(1.05);
}

.services-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden; /* Mencegah efek blur bocor/melebar ke luar layar */
    z-index: 1;
}
/* LAPISAN GAIB (BACKGROUND IMAGE + GRADASI + BLUR) */
.services-section::before {
    content: '';
    position: absolute;
    /* Margin dilebihkan -15px agar tepian layar tidak muncul garis putih akibat tarikan blur */
    top: -15px; left: -15px; right: -15px; bottom: -15px; 
    
    /* Gradasi Hijau Pekat SBT digabung dengan URL Gambar */
    background: linear-gradient(135deg, rgba(8, 45, 22, 0.85) 0%, rgba(16, 85, 41, 0.65) 100%),
                url('/assets/images/bidangusaha.webp') center/cover no-repeat;
    
    filter: blur(1px); /* Tingkat blur gambar */
    z-index: -1;       /* Dilempar ke belakang konten */
}

/* Pastikan seluruh konten (teks & card) aman di atas lapisan background */
.services-section > .container {
    position: relative;
    z-index: 2;
}

/* =========================================
   DESAIN SERVICE CARD (SIGNATURE STYLE)
   ========================================= */
.service-card {
    /* Background transparan ala kaca (Glassmorphism) */
    background: rgba(255, 255, 255, 0.08); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px 25px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    position: relative;
    
    /* Mencegah icon watermark tumpah ke luar kotak */
    overflow: hidden; 
    z-index: 1;
    
    /* Ikon dan teks di tengah */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.12); /* Lebih terang sedikit saat disorot */
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    border-bottom: 3px solid var(--sbt-gold); /* Garis emas di bawah */
}

/* Icon Utama (Tengah & Besar) */
.service-icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #65a30d, #4d7c0f); /* Gradien hijau cerah */
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.service-card:hover .service-icon-box {
    transform: scale(1.1) rotate(5deg);
}

/* Icon Watermark Background di Pojok Kanan */
.service-bg-icon {
    position: absolute;
    bottom: -25px;
    right: -20px;
    font-size: 130px;
    color: rgba(255, 255, 255, 0.04); /* Sangat transparan (4% putih) */
    z-index: -1; /* Dilempar ke belakang teks */
    transform: rotate(-15deg);
    transition: all 0.4s ease;
}
.service-card:hover .service-bg-icon {
    color: rgba(255, 255, 255, 0.08);
    transform: rotate(0deg) scale(1.1);
}

/* Penyesuaian Teks agar Terbaca di Background Gelap */
.service-card h5 {
    font-weight: 800;
    color: #ffffff; 
    margin-bottom: 15px;
    font-size: 1.15rem;
}
.service-card p {
    color: #cbd5e1; /* Warna abu-abu terang */
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}
/* Custom CSS untuk Tab Alur Produksi */
.btn-tab-custom {
    border: 2px solid #198754 !important; 
    color: #198754 !important;
    background-color: transparent !important;
    transition: all 0.3s ease-in-out;
    
    /* --- TAMBAHAN UNTUK MENYAMAKAN LEBAR --- */
    width: 260px; /* Kunci lebar kedua tombol agar sama rata */
    max-width: 100%; /* Pengaman agar tombol tidak tumpah/terpotong di layar HP */
    display: flex; 
    justify-content: center; /* Memastikan ikon dan teks berada pas di tengah */
    align-items: center;
}
.btn-tab-custom:hover {
    background-color: rgba(25, 135, 84, 0.1) !important;
    transform: translateY(-2px);
}
.nav-pills .btn-tab-custom.active, 
.nav-pills .btn-tab-custom.active:hover {
    background-color: #198754 !important;
    color: white !important;
    box-shadow: 0 6px 15px rgba(25, 135, 84, 0.4) !important;
    transform: translateY(-2px);
}
/* Custom CSS untuk Card Keunggulan (Glassmorphism + Gradasi Hijau-Kuning SBT) */
.card-keunggulan {
    /* Gradasi Hijau ke Kuning/Emas khas SBT (transparan) */
    background: linear-gradient(135deg, rgba(13, 81, 40, 0.85) 0%, rgba(212, 175, 55, 0.6) 100%);
    
    /* Efek Kaca (Glassmorphism) Kuat */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    
    border-radius: 1rem;
    color: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Animasi memantul pelan */
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15); /* Bayangan khas efek kaca */
}

.card-keunggulan:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(13, 81, 40, 0.3);
}

/* Watermark Logo Pojok Kanan */
.watermark-logo {
    position: absolute;
    bottom: -15px;
    right: -15px;
    font-size: 7rem;
    color: #ffffff;
    opacity: 0.08;
    transform: rotate(-15deg);
    z-index: 0;
}

.icon-wrapper-keunggulan {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem auto;
    font-size: 1.8rem;
    color: white;
    /* Background dihapus dari CSS ini karena akan dicetak otomatis via PHP */
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
    position: relative;
    z-index: 1;
}

/* Styling Preloader Daur Ulang PT SBT */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}


/* Animasi Ikon Daur Ulang Berputar & Bersinar */
.recycle-loader-icon {
    font-size: 4.5rem;
    color: #d4af37; /* Kuning Emas SBT */
    animation: spinRecycle 2s linear infinite, pulseGlow 1.5s ease-in-out infinite alternate;
    margin-bottom: 20px;
    display: inline-block;
}

@keyframes spinRecycle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseGlow {
    0% { filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.4)); }
    100% { filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.9)); }
}

.loader-brand-title {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.loader-brand-sub {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}