/*
Theme Name: Astra Child
Template: astra
Version: 1.0
*/

/* =========================================
   BRIDGE SECTION (Layout Control - Final Fix)
   ========================================= */

.hybrid-bridge-section {
    position: relative;
    z-index: 20;
    width: 100%;
}

/* DESKTOP: Side-by-Side (50/50) */
@media (min-width: 768px) {
    .hybrid-bridge-section .wp-block-columns {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: flex-start !important;
        gap: 40px !important;
        margin-top: -130px !important; 
    }
}

/* MOBILE: Force Vertical Stack */
@media (max-width: 767px) {
    /* 1. Lift the container */
    .hybrid-bridge-section {
        margin-top: -60px !important; 
    }

    /* 2. Force the columns to stack vertically */
    .hybrid-bridge-section .wp-block-columns {
        display: block !important; /* Disables flex side-by-side */
    }

    /* 3. Add spacing between the stacked items */
    .hybrid-bridge-section .wp-block-column {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 25px !important; /* Gap between Circles and Widget */
    }
}


/* =========================================
   BACKGROUND COLOR - TARGETED APPROACH
   ========================================= */

/* Main content areas only */
.site-content,
.entry-content,
article,
main,
#content {
    background-color: #F2F2F2 !important;
}

/* Keep body with background for scroll areas */
body {
    background-color: #F2F2F2 !important;
}

/* Explicitly keep header transparent */
.site-header,
.main-header-bar,
header {
    background-color: transparent !important;
}

/* Keep footer separate if needed */
.site-footer {
    background-color: #F2F2F2 !important; /* or different color */
}

/* =========================================
   UNIVERSAL MOBILE SPACING RESET
   ========================================= */
@media (max-width: 768px) {
    .mobile-no-spacing,
    .mobile-no-spacing.wp-block-group {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        gap: 0 !important;
    }
    
    /* Remove gap between consecutive groups */
    .mobile-no-spacing + .mobile-no-spacing {
        margin-top: 0 !important;
    }
    
    /* Target WordPress core block spacing */
    .wp-block-group.mobile-no-spacing > .wp-block-group__inner-container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}
@media (max-width: 768px) {
    /* Target the entry content container */
    .entry-content .mobile-no-spacing:first-child {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}
/* =========================================
   MANUAL MOBILE MARGIN CONTROLS
   ========================================= */
@media (max-width: 768px) {
    .mobile-mt-0 { margin-top: -80px !important; }
    .mobile-mt-10 { margin-top: 10px !important; }
    .mobile-mt-20 { margin-top: 20px !important; }
    .mobile-mt-30 { margin-top: 30px !important; }
    .mobile-mt-40 { margin-top: 40px !important; }
    .mobile-mt-50 { margin-top: 50px !important; }
    
    .mobile-mb-0 { margin-bottom: 0 !important; }
    .mobile-mb-10 { margin-bottom: 10px !important; }
    .mobile-mb-20 { margin-bottom: 20px !important; }
    .mobile-mb-30 { margin-bottom: 30px !important; }
    .mobile-mb-40 { margin-bottom: 40px !important; }
    .mobile-mb-50 { margin-bottom: 50px !important; }
}

/* =========================================
   MANUAL MOBILE MARGIN CONTROLS (NEGATIVE)
   ========================================= */
@media (max-width: 768px) {
    .mobile-mt--10 { margin-top: -10px !important; }
    .mobile-mt--20 { margin-top: -20px !important; }
    .mobile-mt--30 { margin-top: -30px !important; }
    .mobile-mt--40 { margin-top: -40px !important; }
    .mobile-mt--50 { margin-top: -50px !important; }
    .mobile-mt--60 { margin-top: -60px !important; }
    .mobile-mt--70 { margin-top: -70px !important; }
    .mobile-mt--80 { margin-top: -80px !important; }
    
    .mobile-mb--10 { margin-bottom: -10px !important; }
    .mobile-mb--20 { margin-bottom: -20px !important; }
    .mobile-mb--30 { margin-bottom: -30px !important; }
    .mobile-mb--40 { margin-bottom: -40px !important; }
    .mobile-mb--50 { margin-bottom: -50px !important; }
}

/* Footer Mobile Responsiveness - Force 10px bottom */
@media (max-width: 768px) {
    .site-footer .ast-footer-above-section {
        padding-bottom: 10px !important;
    }
    
    .bl-footer-wrapper {
        padding: 20px 0 0 0 !important;
    }
    
    .bl-footer-logo {
        max-width: 220px !important;
    }
    
    .site-footer .ast-footer-above-section a[href="/booking-form/"] {
        padding: 11px 28px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .site-footer .ast-footer-above-section .ast-builder-html-element {
        font-size: 10px !important;
    }
    
    .site-footer .ast-footer-above-section a {
        font-size: 10px !important;
    }
}

@media (max-width: 360px) {
    .site-footer .ast-footer-above-section .ast-builder-html-element {
        font-size: 9px !important;
    }
    
    .site-footer .ast-footer-above-section a {
        font-size: 9px !important;
    }
}

/* ===== DEFAULT MENU COLORS (all pages) ===== */
.ast-builder-menu .menu-link,
.ast-builder-menu-1 .menu-link,
.main-header-menu .menu-link,
.main-header-menu a {
    color: #7d8dff !important;
}

.ast-builder-menu .menu-link:hover,
.ast-builder-menu-1 .menu-link:hover,
.main-header-menu .menu-link:hover,
.main-header-menu a:hover {
    color: #ff4f81 !important;
}

/* ===== PAGE-SPECIFIC MENU COLORS (desktop only) ===== */
@media (min-width: 922px) {
    
    /* Kuta - dark text (page-id-721) */
    body.page-id-721 .main-header-menu .menu-link,
    body.page-id-721 .ast-builder-menu .menu-link,
    body.page-id-721 .main-header-menu a {
        color: #000000 !important;
    }
    
    /* Nusa Dua - white text (page-id-557) */
    body.page-id-557 .main-header-menu .menu-link,
    body.page-id-557 .ast-builder-menu .menu-link,
    body.page-id-557 .main-header-menu a {
        color: #ffffff !important;
    }
    
    /* Seminyak - white text (page-id-709) */
    body.page-id-709 .main-header-menu .menu-link,
    body.page-id-709 .ast-builder-menu .menu-link,
    body.page-id-709 .main-header-menu a {
        color: #ffffff !important;
    }
    
    /* Homepage - white text (page-id-62) */
    body.page-id-62 .main-header-menu .menu-link,
    body.page-id-62 .ast-builder-menu .menu-link,
    body.page-id-62 .main-header-menu a {
        color: #ffffff !important;
    }

    /* Legian - white text (page-id-718) */
    body.page-id-718 .main-header-menu .menu-link,
    body.page-id-718 .ast-builder-menu .menu-link,
    body.page-id-718 .main-header-menu a {
        color: #ffffff !important;
    }

    /* Jimbaran - white text (page-id-726) */
    body.page-id-726 .main-header-menu .menu-link,
    body.page-id-726 .ast-builder-menu .menu-link,
    body.page-id-726 .main-header-menu a {
        color: #ffffff !important;
    }

    /* Uluwatu - white text (page-id-731) */
    body.page-id-731 .main-header-menu .menu-link,
    body.page-id-731 .ast-builder-menu .menu-link,
    body.page-id-731 .main-header-menu a {
        color: #ffffff !important;
    }

        /* Canggu - white text (page-id-729) */
    body.page-id-729 .main-header-menu .menu-link,
    body.page-id-729 .ast-builder-menu .menu-link,
    body.page-id-729 .main-header-menu a {
        color: #ffffff !important;
    }
    
}  

/* ===== MOBILE MENU STYLES ===== */
@media (max-width: 921px) {
    
    /* Transparent background */
    .ast-mobile-popup-inner,
    .ast-mobile-popup-content,
    .ast-mobile-popup-drawer .ast-mobile-popup-inner {
        background: transparent !important;
    }
    
    .ast-mobile-popup-overlay {
        background: rgba(255,255,255,0.95) !important;
    }
    
    /* Menu container */
    .ast-builder-menu-mobile .main-header-menu,
    #ast-mobile-popup .main-header-menu {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        padding: 10px 35px 10px 10px !important;
        gap: 6px !important;
        background: transparent !important;
    }
    
    /* Menu items */
    #ast-mobile-popup .menu-item,
    .ast-builder-menu-mobile .menu-item {
        width: auto !important;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Compact pill links */
    #ast-mobile-popup .menu-item .menu-link,
    .ast-builder-menu-mobile .menu-item .menu-link {
        padding: 6px 16px !important;
        border-radius: 20px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        color: #4b5563 !important;
        background: #ffffff !important;
        box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
        display: inline-block !important;
        line-height: 1.4 !important;
    }
    
    /* Active page - coral */
    #ast-mobile-popup .menu-item.current-menu-item .menu-link,
    .ast-builder-menu-mobile .menu-item.current-menu-item .menu-link {
        background: #ff4f81 !important;
        color: #fff !important;
    }
    
    /* Force all popup backgrounds transparent */
    .ast-mobile-popup-drawer,
    .ast-mobile-popup-drawer.active,
    .ast-mobile-popup-drawer .ast-mobile-popup-overlay,
    .ast-mobile-popup-drawer .ast-mobile-popup-inner,
    .ast-mobile-popup-drawer .ast-mobile-popup-content,
    #ast-mobile-popup,
    #ast-mobile-popup .ast-mobile-popup-inner,
    .ast-mobile-header-content,
    .ast-mobile-popup-wrap {
        background: transparent !important;
        background-color: transparent !important;
    }

    /* Move active item to top visually */
    .ast-builder-menu-mobile .menu-item.current-menu-item,
    #ast-mobile-popup .menu-item.current-menu-item {
        order: -1 !important;
    }
}