/*
Theme Name: Bangun Berkah Abadi
Theme URI: https://bangunberkahabadi.com
Author: BBA Developer
Author URI: https://bangunberkahabadi.com
Description: Custom WordPress theme for PT Bangun Berkah Abadi - Spesialis Aluminium, Kaca, ACP dan Cubicle Toilet. Fully compatible with Elementor page builder for easy content management.
Version: 6.9.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bangun-berkah-abadi
Tags: one-column, custom-menu, featured-images, theme-options, translation-ready, elementor
*/

/*==========================================
   BASE STYLES - Theme Override
==========================================*/

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 9990;
    pointer-events: auto;
}

.whatsapp-float img {
    width: 200px;
    height: auto;
}

/* ==========================================
   HEADER BUTTON - MERAH
========================================== */
.btn.header-btn {
    background: #ff1313 !important;
    color: #ffffff !important;
    padding: 27px 53px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 0;
    font-size: 16px;
    border: 2px solid #ff1313;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn.header-btn:hover {
    background: #cc0f0f !important;
    border-color: #cc0f0f;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 19, 19, 0.4);
}

.btn.header-btn::before {
    display: none;
}

/* Back to Top - posisi di ATAS WhatsApp */
#back-top {
    position: fixed;
    bottom: -60px;
    right: 25px;
    z-index: 9999;
    transition: all 0.4s ease;
    pointer-events: auto;
}

#back-top.show {
    bottom: 110px;
}

#back-top a {
    display: block;
    width: 50px;
    height: 50px;
    background: #ff6b1a;
    color: #fff;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
    text-decoration: none;
}

#back-top a:hover {
    background: #e55a0e;
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}

/* Elementor Canvas Fix */
.elementor-page .site-header,
.elementor-page .site-footer {
    display: none;
}

/* Page Title Banner */
.page-title-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-title-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 5, 27, 0.7);
}

.page-title-banner h1 {
    position: relative;
    color: #fff;
    font-size: 48px;
    font-weight: 700;
    z-index: 1;
}

/* Elementor compatibility */
.elementor-widget-container h1,
.elementor-widget-container h2,
.elementor-widget-container h3,
.elementor-widget-container h4 {
    color: inherit;
}

/* Preloader */
#preloader-active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

#preloader-active.loaded {
    opacity: 0;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .whatsapp-float img {
        width: 130px;
    }

    #back-top.show {
        bottom: 90px;
    }

    #back-top a {
        width: 42px;
        height: 42px;
        line-height: 42px;
        font-size: 16px;
    }
    
    .page-title-banner h1 {
        font-size: 32px;
    }
}
