/* ====== DOCTRELLO HEADER STYLES ====== */
/* Clean, modern, professional navigation */
/* Brand Colors: #234c78 (Primary), #4c7031 (Secondary) */

/* ====== MICRO HEADER ====== */
.micro-header {
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-light);
    padding: 10px 0;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    width: 100%;
    position: relative;
    z-index: 1030;
}

.micro-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.micro-header .row {
    width: 100%;
    align-items: center;
}

.micro-header-contact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.micro-header-contact span {
    display: inline-flex;
    align-items: center;
    color: var(--text-soft);
    font-size: 0.85rem;
}

.micro-header-contact i {
    margin-right: 8px;
    color: var(--secondary);
    font-size: 0.85rem;
}

.micro-header-contact a {
    color: var(--text-soft);
    text-decoration: none;
    transition: color 0.2s ease;
}

.micro-header-contact a:hover {
    color: var(--secondary);
}

/* ====== SOCIAL ICONS - WITH HOVER LIFT ====== */
.micro-header-social {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.micro-header-social a {
    color: var(--text-soft);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Hover lift effect - moving up slightly */
.micro-header-social a:hover {
    color: var(--secondary);
    transform: translateY(-2px);
}

/* ====== MAIN NAVIGATION - STICKY ====== */
.navbar {
    background: white;
    padding: 1rem 0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    padding: 0.75rem 0;
}

.navbar-brand {
    padding: 0;
    margin: 0;
}

.navbar-brand img {
    height: 38px;
    width: auto;
    transition: height 0.3s ease;
}

.navbar-scrolled .navbar-brand img {
    height: 35px;
}

.navbar-nav {
    align-items: center;
}

/* ====== MENU LINKS - SIMPLE & MODERN ====== */
.nav-link {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    letter-spacing: 0.01em;
    position: relative;
}

/* Hover - Secondary Green */
.nav-link:hover {
    color: var(--secondary) !important;
}

/* Active - Primary Blue with underline */
.nav-link.active {
    color: var(--primary) !important;
    font-weight: 600;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* ====== BOOK A DEMO BUTTON ====== */
.nav-cta {
    padding: 0.5rem 1.5rem !important;
    border-width: 1.5px !important;
    margin-left: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    background-color: var(--primary);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(35, 76, 120, 0.1);
    border-color: var(--primary);
}

/* ====== MOBILE RESPONSIVE ====== */
@media (max-width: 991px) {
    .micro-header .row {
        flex-direction: column;
        gap: 8px;
    }
    
    .micro-header-contact {
        justify-content: center;
        width: 100%;
    }
    
    .micro-header-social {
        justify-content: center;
        width: 100%;
    }
    
    /* Keep hover lift on mobile but without transform */
    .micro-header-social a:hover {
        transform: none;
    }
    
    /* FIX: Sticky works on mobile but with proper z-index */
    .navbar {
        position: sticky;
        top: 0;
        z-index: 9999;
    }
    
    /* FIX: Ensure toggle button is visible and clickable */
    .navbar-toggler {
        display: block !important;
        border: 1px solid var(--border-light);
        padding: 8px 12px;
        z-index: 10000;
    }
    
    .navbar-toggler:focus,
    .navbar-toggler:active {
        outline: none;
        box-shadow: none;
    }
    
    /* FIX: Mobile menu styling - ensure it appears above content */
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1.5rem;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 9998;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    /* FIX: Ensure collapsed state works */
    .navbar-collapse.collapse:not(.show) {
        display: none;
    }
    
    .navbar-collapse.show {
        display: block;
    }
    
    .navbar-nav {
        width: 100%;
        margin: 0;
    }
    
    .nav-item {
        width: 100%;
        margin: 0 !important;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        width: 100%;
        border-radius: 6px;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .nav-link.active {
        background-color: rgba(35, 76, 120, 0.04);
        border-bottom: 2px solid var(--primary);
    }
    
    .nav-cta {
        margin-left: 0;
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .micro-header-contact {
        flex-direction: column;
        gap: 5px;
    }
    
    .micro-header-contact span {
        margin: 0 !important;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 32px;
    }
    
    .navbar-scrolled .navbar-brand img {
        height: 30px;
    }
    
    .micro-header-contact {
        font-size: 0.8rem;
    }
    
    .micro-header-social {
        gap: 16px;
    }
    
    .micro-header-social a {
        font-size: 0.9rem;
    }
    
    .navbar-collapse {
        padding: 1.2rem;
    }
}