/* ==========================================================================
   BLOCK 1: THE BRANDING RESET (THE "THEME KILLER")
   ========================================================================== */
.site-branding__name, 
#site-name,
.navbar-brand .site-title {
    display: none !important;
}

/* ==========================================================================
   BLOCK 2: CUSTOM LOGO TYPOGRAPHY (JP ROBOTIC)
   ========================================================================== */
.jpr-header-lockup {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.jpr-brand-link {
    text-decoration: none !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 800 !important;
    font-size: 28px !important; 
    display: flex;
    align-items: center;
    letter-spacing: 0.02em;
}

.jpr-blue-jp {
    color: #00a2ed !important; 
    margin-right: 8px; 
}

.jpr-white-robotic {
    color: #ffffff !important; 
    text-transform: uppercase;
}

/* ==========================================================================
   BLOCK 3: LAYOUT & ALIGNMENT
   ========================================================================== */
.region-header, .navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (max-width: 767px) {
    .jpr-header-lockup {
        justify-content: center;
        width: 100%;
    }
}

/* ==========================================================================
   BLOCK 4: SEARCH BAR THEME (ISOLATED TO PREVENT ADMIN LEAK)
   ========================================================================== */

/* 4.1 - Input Fields (Targeting only Header/Footer/Search blocks) */
.region-header .search-form input,
.jpr-footer .search-form input,
#block-search-form #edit-keys,
#search-block-form #edit-keys {
    background-color: #1a1d21 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-radius: 0px !important;
    padding: 8px 12px !important;
    font-family: 'Barlow', sans-serif !important;
    transition: border-color 0.3s ease;
}

.search-form input:focus {
    border-color: #00a2ed !important; 
    outline: none !important;
}

/* 4.2 - The Action Button (Targeted so it doesn't break Asset Injector Save buttons) */
.region-header .search-form button,
.region-header .search-form input[type="submit"],
.jpr-footer .search-form button,
#block-search-form #edit-submit,
#search-block-form #edit-submit {
    background-color: #00a2ed !important; 
    background-image: none !important; 
    color: #ffffff !important;
    border: none !important;
    border-radius: 0px !important;
    padding: 8px 20px !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease !important;
    appearance: none;
}

/* 4.3 - Hover Animations */
.region-header .search-form button:hover,
#block-search-form #edit-submit:hover {
    background-color: #0081bd !important; 
    box-shadow: 0 0 12px rgba(0, 162, 237, 0.5) !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   BLOCK 5: MOBILE SEARCH FIX
   ========================================================================== */
@media (max-width: 767px) {
    .search-form {
        display: flex !important;
        justify-content: center;
        width: 100%;
        margin-top: 15px;
    }
}