/*
 * ========================================
 * Kimet Law Office - Header Styles
 * ========================================
 * UI REDESIGN: Modern header and navigation
 * ========================================
 */

/* ==================== TOP BAR ==================== */
.top-bar {
    background: var(--gradient-primary);
    padding: 12px 0;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
}

.top-bar-info {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.top-bar-info span {
    display: inline-flex;
    align-items: center;
    color: #e0e0e0;
    transition: color var(--transition-normal);
}

.top-bar-info span:hover {
    color: var(--accent-color);
}

.top-bar-info i {
    color: var(--accent-color);
    margin-left: 8px;
}

.top-bar-info a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-normal);
}

.top-bar-info a:hover {
    color: var(--accent-color);
}

.top-bar-social {
    display: flex;
    gap: var(--spacing-xs);
    justify-content: flex-start;
}

.top-bar-social .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: var(--border-radius-round);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: all var(--transition-normal);
    font-size: 0.9rem;
}

.top-bar-social .social-link:hover {
    background: var(--accent-color);
    color: var(--dark-color);
    transform: translateY(-3px);
}

/* ==================== NAVIGATION ==================== */
.navbar {
    background: #fff !important;
    box-shadow: var(--shadow-md);
    padding: 15px 0;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: var(--font-weight-extra-bold);
    color: var(--dark-color);
    transition: all var(--transition-normal);
}

.navbar-brand:hover {
    color: var(--primary-color);
}

.navbar-brand img {
    height: 50px;
    transition: transform var(--transition-normal);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: #333 !important;
    font-weight: var(--font-weight-medium);
    padding: 10px 20px !important;
    margin: 0 5px;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-normal);
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-accent);
    transition: width var(--transition-normal);
    border-radius: 2px;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 60%;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(27, 73, 101, 0.05);
}

.nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(27, 73, 101, 0.08);
}

.nav-link i {
    color: var(--accent-color);
    margin-left: 5px;
    font-size: 0.9rem;
}

/* ==================== DROPDOWN MENU ==================== */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-md);
    padding: 10px 0;
    margin-top: 10px;
    animation: dropdownFadeIn var(--transition-normal) ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 12px 25px;
    color: #333;
    font-weight: var(--font-weight-regular);
    transition: all var(--transition-normal);
    border-right: 3px solid transparent;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(27, 73, 101, 0.08), transparent);
    color: var(--primary-color);
    border-right-color: var(--accent-color);
    padding-right: 30px;
}

.dropdown-item i {
    color: var(--accent-color);
    margin-left: 10px;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    margin: 8px 0;
    border-top-color: rgba(27, 73, 101, 0.1);
}

/* ==================== SEARCH BUTTON ==================== */
.btn-outline-secondary {
    border-color: #e0e0e0;
    color: #666;
    border-radius: var(--border-radius-round);
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.btn-outline-secondary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: rotate(90deg);
}

/* ==================== CTA BUTTON ==================== */
.navbar .btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 10px 25px;
    font-weight: var(--font-weight-medium);
    border-radius: var(--border-radius-pill);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.navbar .btn-primary:hover {
    background: var(--gradient-accent);
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.navbar .btn-primary i {
    color: inherit;
}

/* ==================== MOBILE TOGGLE ==================== */
.navbar-toggler {
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-sm);
    padding: 8px 12px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(27, 73, 101, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231B4965' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==================== SEARCH MODAL ==================== */
.modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    background: var(--gradient-primary);
    color: #fff;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    padding: 20px 25px;
    border-bottom: none;
}

.modal-title {
    font-weight: var(--font-weight-bold);
}

.modal-title i {
    color: var(--accent-color);
}

.modal-body {
    padding: 30px 25px;
}

.modal-body .form-control {
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-md);
    padding: 12px 20px;
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.modal-body .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(27, 73, 101, 0.15);
}

.modal-body .btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 12px 30px;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    transition: all var(--transition-normal);
}

.modal-body .btn-primary:hover {
    background: var(--gradient-accent);
    color: var(--dark-color);
}

.btn-close {
    filter: brightness(0) invert(1);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .top-bar {
        text-align: center;
    }
    
    .top-bar-info {
        justify-content: center;
        font-size: 0.85rem;
    }
    
    .top-bar-social {
        justify-content: center;
        margin-top: var(--spacing-sm);
    }
    
    .navbar-nav {
        margin-top: var(--spacing-md);
    }
    
    .nav-link {
        margin: 5px 0;
    }
    
    .navbar .btn-primary {
        width: 100%;
        margin-top: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .top-bar {
        padding: 10px 0;
    }
    
    .top-bar-info span {
        font-size: 0.8rem;
    }
    
    .navbar-brand img {
        height: 40px;
    }
}

