/* ========================================================
   KALEIIDO GROUP - STICKY HEADER & NAVBAR STYLING
   ======================================================== */

/* 1. BRAND COLORS & REUSABLE UTILITIES */
:root {
    --primary-red: #ed2227;
    --dark-red: #990B0F;
    --dark-black: #0A0A0A;
    --pure-black: #111111;
    --pure-white: #FFFFFF;
    --border-light: #E2E8F0;
}

.text-red {
    color: var(--primary-red) !important;
}

/* 2. STICKY HEADER WRAPPER (FOR DESKTOP & MOBILE BOTH) */
.header-sticky-wrapper {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 3. TOP BAR (BLACK BACKGROUND) */
.top-bar-black {
    background-color: var(--dark-black);
    color: var(--pure-white);
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.top-bar-black a {
    color: var(--pure-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s ease;
}

.top-bar-black a:hover {
    color: var(--primary-red);
}

.top-info-left .info-item {
    display: inline-flex;
    align-items: center;
}

.top-socials a {
    color: #CCCCCC;
    font-size: 14px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.top-socials a:hover {
    color: var(--primary-red);
    transform: translateY(-2px);
}

/* 4. MAIN NAVBAR */
.main-navbar {
    background-color: var(--pure-white) !important;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.brand-logo-img {
    height: 110px; /* Standard balanced height for sticky view */
    width: auto;
    margin-top:-10px;
    margin-bottom:-10px;
    object-fit: contain;
    transition: height 0.3s ease;
    
}

/* Navigation Links */
.nav-link-item {
    color: var(--pure-black) !important;
    font-size: 16px;
    font-weight: 600;
    padding: 8px 16px !important;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link-item:hover,
.nav-link-item.active {
    color: var(--primary-red) !important;
}

/* Active Line Indicator for Desktop */
@media (min-width: 1200px) {
    .nav-link-item::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background-color: var(--primary-red);
        transition: width 0.3s ease;
    }
    
    .nav-link-item:hover::after,
    .nav-link-item.active::after {
        width: 60%;
    }
}

/* Custom "Let's Connect" Button */
.btn-connect-custom {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--pure-white) !important;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 50px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(237, 34, 39, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-connect-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(237, 34, 39, 0.5);
}

.custom-toggler-icon {
    font-size: 22px;
    color: var(--pure-black);
}

/* 5. MOBILE & TABLET RESPONSIVE FIXES */

/* Mobile Centering for Top Bar */
@media (max-width: 767.98px) {
    .top-bar-black .top-info-left,
    .top-bar-black .top-info-right {
        width: 100%;
        justify-content: center !important;
    }

    .top-bar-black {
        font-size: 11.5px;
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }
    
    .top-socials a {
        font-size: 14px;
    }
}

/* Collapsible Mobile Menu Styling */
@media (max-width: 1199.98px) {
    .brand-logo-img {
        height: 68px;
    }

    .navbar-collapse {
        background-color: var(--pure-white);
        padding: 20px;
        border-radius: 12px;
        margin-top: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
        border: 1px solid var(--border-light);
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-link-item {
        padding: 12px 0 !important;
        border-bottom: 1px solid #F1F5F9;
    }

    .nav-item:last-child .nav-link-item {
        border-bottom: none;
    }
}