/*
Theme Name: BSM Standalone Theme
Theme URI: https://bangunsaranamakmur.co.id/
Author: Web Developer BSM
Description: Tema statis murni kustom untuk Landing Page Pagar BRC CV Bangun Sarana Makmur.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: bsm-theme
*/

:root {
    --primary: #0a2540;
    --primary-light: #1a3a5c;
    --accent: #d4a017;
    --accent-light: #f5c542;
    --light: #f8f9fa;
    --dark: #1a1a1a;
    --gray: #6c757d;
    --white: #ffffff;
}

* { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, .serif {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}
.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(212,160,23,0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== NAVBAR ===== */
.navbar {
    padding: 15px 0;
    transition: all 0.4s ease;
    background: transparent;
}
.navbar.scrolled {
    background: rgba(10, 37, 64, 0.97) !important;
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 5px 30px rgba(0,0,0,0.15);
}
.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--white) !important;
}
.navbar-brand .brand-accent {
    color: var(--accent);
}
.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 8px 18px !important;
    position: relative;
    transition: color 0.3s;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { width: 60%; }
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { 
    color: var(--accent) !important; 
}
.navbar-toggler { border-color: var(--accent); }
.navbar-toggler-icon { filter: invert(1); }

.navbar.scrolled .navbar-nav .nav-link {
    color: var(--white) !important;
}
.navbar.scrolled .navbar-nav .nav-link:hover,
.navbar.scrolled .navbar-nav .nav-link.active {
    color: var(--accent) !important;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(10,37,64,0.92) 0%, rgba(26,58,92,0.88) 100%),
                url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1920') center/cover;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to top, var(--white), transparent);
}
.hero-subtitle {
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: inline-block;
}
.hero-subtitle::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    vertical-align: middle;
    margin-right: 15px;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 25px;
}
.hero h1 span { color: var(--accent); font-style: italic; }
.hero p {
    font-size: 1.15rem;
    max-width: 600px;
    margin-bottom: 35px;
    opacity: 0.9;
}

/* ===== BUTTONS ===== */
.btn-primary-custom {
    background: var(--accent);
    color: var(--primary) !important;
    font-weight: 600;
    padding: 14px 35px;
    border-radius: 50px;
    border: 2px solid var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}
.btn-primary-custom:hover {
    background: transparent;
    color: var(--accent) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212,160,23,0.3);
}
.btn-outline-custom {
    background: transparent;
    color: var(--white) !important;
    border: 2px solid var(--white);
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s;
    margin-left: 10px;
    text-decoration: none;
}
.btn-outline-custom:hover {
    background: var(--white);
    color: var(--primary) !important;
}

/* ===== SECTION GENERAL ===== */
section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 70px; }
.section-label {
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 15px;
}
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary);
    margin-bottom: 20px;
}
.section-divider {
    width: 80px;
    height: 3px;
    background: var(--accent);
    margin: 0 auto;
    position: relative;
}
.section-divider::before,
.section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}
.section-divider::before { left: -20px; }
.section-divider::after { right: -20px; }

/* ===== ABOUT ===== */
.about-img-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(10,37,64,0.2);
    z-index: 1;
}
.about-img-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent);
    border-radius: 15px;
    z-index: -1;
}
.about-img-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
}
.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    color: var(--primary);
    padding: 20px 25px;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 2;
}
.experience-badge .num {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 900;
    display: block;
    line-height: 1;
}
.about-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
.about-feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-right: 15px;
    flex-shrink: 0;
}
.about-feature h5, 
#about h5 { 
    font-size: 1.1rem; 
    margin-bottom: 5px; 
    color: var(--primary) !important;
    font-family: 'Playfair Display', serif;
}
.about-feature p, 
#about .text-muted, 
#about p { 
    font-size: 0.95rem; 
    color: var(--gray) !important; 
    margin: 0; 
}

/* ===== PRODUCTS ===== */
.products-section { background: var(--light); }
.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(10,37,64,0.08);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid rgba(10,37,64,0.05);
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(10,37,64,0.15);
}
.product-img {
    height: 250px;
    background: linear-gradient(135deg, #e8eef5 0%, #f8f9fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.product-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(10,37,64,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10,37,64,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}
.product-img i {
    font-size: 5rem;
    color: var(--primary);
    position: relative;
    z-index: 1;
}
.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}
.product-body { padding: 25px; }
.product-body h4 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.product-specs {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}
.product-specs li {
    padding: 8px 0;
    border-bottom: 1px dashed #e0e0e0;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}
.product-specs li:last-child { border: none; }
.product-specs li span:first-child { color: var(--gray); }
.product-specs li span:last-child { font-weight: 600; color: var(--primary); }
.product-price {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 700;
    margin-top: 15px;
}
.btn-sm-custom {
    background: var(--primary) !important;
    color: var(--white) !important;
    padding: 12px 25px;
    border-radius: 25px;
    border: 2px solid var(--primary) !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    width: 100%;
    display: block;
    text-align: center;
    text-decoration: none;
}
.btn-sm-custom:hover {
    background: var(--accent) !important;
    color: var(--primary) !important;
    border-color: var(--accent) !important;
}

/* ===== STATS ===== */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 80px 0;
    position: relative;
}
.stat-item { text-align: center; padding: 20px; }
.stat-icon {
    width: 70px;
    height: 70px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}
.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
}
.stat-label {
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 10px;
    opacity: 0.9;
}

/* ===== WHY US ===== */
.feature-card {
    padding: 40px 30px;
    text-align: center;
    border-radius: 15px;
    background: var(--white);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid #eef1f5;
}
.feature-card:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(10,37,64,0.2);
}
.feature-card:hover .feature-icon {
    background: var(--accent);
    color: var(--primary);
}
.feature-card h4 {
    color: var(--primary);
    margin-bottom: 15px;
    transition: color 0.3s;
}
.feature-card p { color: var(--gray); transition: color 0.3s; }
.feature-card:hover h4,
.feature-card:hover p { color: var(--white) !important; }

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(10,37,64,0.08);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: all 0.4s;
}

/* ===== COVERAGE (FIXED 100% SESUAI FILE coverageArea.jpg) ===== */
.coverage-section {
    background: #ffffff; /* Sesuai gambar: background bersih terang */
    color: var(--dark);
    padding: 90px 0;
}
.coverage-section .section-label {
    color: var(--primary) !important;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
}
.coverage-section p {
    color: var(--gray) !important;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
}
/* Modifikasi box card: Tanpa teks, pin icon berada tepat di tengah-tengah (justify-content: center) */
.island-card {
    background: #ffffff;
    border: 1px solid #eef1f6; 
    padding: 15px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center; 
    min-height: 56px; 
    box-shadow: 0 3px 10px rgba(10, 37, 64, 0.03);
    transition: all 0.3s ease;
}
.island-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(10, 37, 64, 0.08);
    border-color: var(--accent);
}
/* Warna pin navigasi biru navy gelap pekat sesuai mockup */
.island-card i {
    font-size: 1.15rem;
    color: var(--primary); 
    margin: 0;
}
/* Tombol navy gelap solid dengan border outline emas tipis */
.btn-ongkir {
    background: var(--primary);
    color: var(--white) !important;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 14px 30px;
    border-radius: 6px;
    border: 2px solid var(--accent); 
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    margin-top: 15px;
}
.btn-ongkir:hover {
    background: var(--accent);
    color: var(--primary) !important;
    box-shadow: 0 5px 15px rgba(214, 160, 23, 0.3);
}

/* ===== TESTIMONIAL ===== */
.testimonial-card {
    background: var(--white);
    padding: 40px 35px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(10,37,64,0.08);
    position: relative;
    height: 100%;
    border-top: 4px solid var(--accent);
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -30px;
    left: 30px;
    font-family: 'Playfair Display', serif;
    font-size: 7rem;
    color: var(--accent);
    line-height: 1;
    opacity: 0.3;
}
.testimonial-rating { color: var(--accent); margin-bottom: 15px; }
.testimonial-text {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.8;
}
.testimonial-author {
    display: flex;
    align-items: center;
}
.author-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 15px;
}
.author-info h6 { margin: 0; color: var(--primary); font-family: 'Poppins', sans-serif; font-weight: 600; }
.author-info small { color: var(--gray); }

/* ===== CONTACT ===== */
/* ===== CONTACT (SESUAI GAMBAR LAMPIRAN) ===== */
.contact-section { 
    background: var(--light); 
}

.contact-info-card {
    background: var(--primary) !important; /* Biru tua pekat */
    color: var(--white) !important;
    padding: 50px 40px;
    border-radius: 15px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212,160,23,0.12), transparent 70%);
}

.contact-info-card h3 { 
    color: var(--accent) !important; /* Judul Hubungi Kami Emas */
    margin-bottom: 12px; 
    font-family: 'Playfair Display', serif;
}

.contact-info-card p.lead { 
    opacity: 0.9; 
    margin-bottom: 35px; 
    font-size: 1rem; 
    color: var(--white) !important;
}

.contact-item {
    display: flex;
    align-items: center; /* Membuat teks dan ikon sejajar tengah secara vertikal */
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

/* Mengubah badge bulat menjadi PUTIH sesuai gambar */
.contact-item-icon {
    width: 48px;
    height: 48px;
    background: #ffffff !important; /* Background bulat putih */
    color: var(--primary) !important; /* Warna ikon di dalam menjadi biru tua */
    border-radius: 50% !important; /* Menjadikan bulat sempurna, bukan kotak */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Mengatur warna judul detail (Jam Kerja, Email, dll) agar EMAS */
.contact-item h6 { 
    margin-bottom: 4px; 
    color: var(--accent) !important; /* Warna emas */
    font-family: 'Poppins', sans-serif; 
    font-weight: 600;
    font-size: 0.95rem;
}

/* Mengatur isi teks info agar PUTIH BERSIH */
.contact-item p { 
    margin: 0; 
    color: #ffffff !important; /* Warna putih bersih sesuai lampiran */
    opacity: 1 !important;
    font-size: 0.95rem; 
    font-weight: 400;
}

/* Form Sebelah Kanan (Tetap Dipertahankan Kontrasnya) */
.contact-form-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(10,37,64,0.08);
}
.form-control-custom {
    border: 2px solid #e8ecf1;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 0.95rem;
    transition: all 0.3s;
}
.form-control-custom:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(212,160,23,0.15);
}
.form-label-custom {
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 0.9rem;
}
/* ===== FOOTER ===== */
footer {
    background: #061a2e;
    color: #a8b2c1;
    padding: 70px 0 0;
}
footer h5 {
    color: var(--white);
    margin-bottom: 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}
footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 10px; }
footer ul li a {
    color: #a8b2c1;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}
footer ul li a:hover { color: var(--accent); padding-left: 5px; }
.footer-brand { font-size: 1.5rem; color: var(--white); font-family: 'Playfair Display', serif; font-weight: 900; }
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.08);
    color: var(--white);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s;
}
.social-links a:hover { background: var(--accent); color: var(--primary); transform: translateY(-3px); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-top: 50px;
    font-size: 0.85rem;
    text-align: center;
}
.footer-bottom .accent { color: var(--accent); font-weight: 600; }

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    z-index: 999;
    box-shadow: 0 5px 25px rgba(37,211,102,0.4);
    text-decoration: none;
    animation: pulse 2s infinite;
    transition: transform 0.3s;
}
.wa-float:hover { transform: scale(1.1); color: var(--white); }
@keyframes pulse {
    0%, 100% { box-shadow: 0 5px 25px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 5px 35px rgba(37,211,102,0.7); }
}

/* ===== TOAST ===== */
.toast-custom {
    position: fixed;
    top: 100px;
    right: 30px;
    background: var(--primary);
    color: var(--white);
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-left: 4px solid var(--accent);
    z-index: 9999;
    display: none;
    min-width: 300px;
}
.toast-custom.show { display: block; animation: slideIn 0.4s; }
@keyframes slideIn { from { transform: translateX(400px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    section { padding: 70px 0; }
    .btn-outline-custom { margin-left: 0; margin-top: 10px; }
    .about-img-wrapper img { height: 350px; }
    .contact-info-card, .contact-form-card { padding: 35px 25px; }
}

/* Mengubah spesifik warna icon piala/award menjadi putih */
.coverage-section .island-card i.fa-trophy,
.coverage-section .island-card i.fa-award,
.coverage-section .island-card i.fa-medal {
    color: #ffffff !important; /* Memaksa warna menjadi putih bersih */
    font-size: 1.3rem; /* Sedikit lebih besar agar piala terlihat gagah */
}