/*
 Theme Name:   Twenty Twenty-Five Child
 Description:  Custom child theme for Twenty Twenty-Five.
 Author:       SyncPro - IT Solutions
 Template:     twentytwentyfive
 Version:      1.0.0
*/


/* ==========================================================================
   1. STICKY NAVIGATION CONFIGURATION
   ========================================================================== */
.custom-sticky-nav {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    /* Soft semi-transparent fallback background if overlaying a hero banner */
    background-color: rgba(3, 27, 78, 0.85); 
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.body{
    font-size: 12px;
}
.fs-body{
    font-size: 12px;
}
/* Remove default block gap from top-level template parts */
.wp-site-blocks > .wp-block-template-part {
    margin-block-start: 0 !important;
}
/* Remove default block gap from the main content wrapper */
.wp-site-blocks > main {
    margin-block-start: 0 !important;
}
 

.custom-top-bar {
    display: flex;
    align-items: center;
}

/* .top-bar-icons {
    display: flex;
    align-items: center;
    gap: 15px;
} */

.top-bar-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}  

.section-content {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
    box-sizing: border-box;
}  

/* Container for the semi-transparent navbar */
.semi-transparent-nav {
    /* Mixes your theme's primary color with transparency (change 80% to adjust opacity) */
    background-color: color-mix(in srgb, var(--wp--preset--color--primary) 25%, transparent);
    
    /* Optional: Adds a slight glassmorphism blur */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    
    /* Positioning it over the hero section */
    position: absolute;
    /* top: 40px; <-- Uncomment and adjust to your top-bar height */
    left: 0;
    width: 100%;
    z-index: 99;
    
    padding: 13px; 
    box-sizing: border-box;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.15); Very subtle bottom border for separation */
}

/* Ensure dynamic navigation links match the white text in the design */
.semi-transparent-nav .wp-block-navigation-item__content {
    height: 100%;
    justify-content: center;
    align-items: center;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 500; 
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.semi-transparent-nav .wp-block-navigation-item__content:hover {
    opacity: 0.75;
}

/* 
    ==========================================================================
    2. MOBILE RESPONSIVENESS & VISIBILITY RULES
    ========================================================================== 
*/
@media (max-width: 768px) {
    /* Hide the right-side social utility icons completely on mobile */
    .top-bar-icons {
        display: none !important;
    }

    /* Hide redundant long strings of text on mobile to prevent wrapping breaks */
    .top-bar-text, 
    .top-bar-email {
        display: none !important;
    }

    /* Centers the remaining active components (like the phone number) */
    .custom-top-bar .wp-block-group {
        justify-content: center !important;
        width: 100%;
    }
    
    .section-content {
        padding-inline: 15px;
    }

    .wp-block-columns.scrollable-columns {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding-bottom: 15px;
    }

    /* Only targets the direct children (the main column cards) */
    .wp-block-columns.scrollable-columns > .wp-block-column {
        flex: 0 0 85% !important;
        max-width: 85% !important;
        scroll-snap-align: start;
    }

    /* FIX: Resets any inner nested columns back to normal WordPress behavior */
    .wp-block-columns.scrollable-columns > .wp-block-column .wp-block-columns {
        display: flex !important;
        flex-wrap: wrap !important; /* Allows nested items to stack or wrap normally */
    }
}

/* 
    ==========================================================================
    2. LARGE SCREEN RESPONSIVENESS & VISIBILITY RULES
    ========================================================================== 
*/
@media (min-width: 1200px) {
    .section-content {
        padding-inline: 0;
    }
}
