/* ==========================================================
   B2B Professional - Header Styles
   Top bar, site header, navigation, mobile menu
   ========================================================== */

/* === Top Bar === */
.top-bar { background: var(--bs-theme-color); color: rgba(255,255,255,.75); font-size: 13px; padding: 8px 0; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-bar-left { display: flex; gap: 20px; align-items: center; }
.top-contact i { margin-right: 6px; color: var(--bs-sec-theme-color); font-size: 12px; }
.top-bar-right { display: flex; align-items: center; gap: 16px; }
.top-menu { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.top-menu li a { color: rgba(255,255,255,.75); font-size: 12px; }
.top-menu li a:hover { color: #fff; }

/* === Language Switcher === */
.language-switcher { position: relative; }
.lang-toggle { background: none; border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.75); padding: 3px 10px; border-radius: 3px; cursor: pointer; font-size: 12px; display: flex; align-items: center; gap: 6px; }
.lang-toggle:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.lang-arrow { font-size: 10px; transition: transform .2s; }
.lang-dropdown.open .lang-arrow { transform: rotate(180deg); }
.lang-list { display: none; position: absolute; top: 100%; right: 0; background: #fff; border: 1px solid #e9ecef; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,.1); min-width: 160px; z-index: 100; padding: 6px 0; margin-top: 4px; }
.lang-dropdown.open .lang-list { display: block; }
.lang-list li a { display: block; padding: 8px 14px; font-size: 13px; color: #495057; }
.lang-list li a:hover { background: #f8f9fa; color: var(--bs-theme-color); }
.lang-list li.active a { color: var(--bs-theme-color); font-weight: 600; }

/* === Site Header === */
.site-header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 1000; transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; /*height: 72px; */}

/* === Logo === */
.site-branding { flex: 0 0 auto; }
.site-branding .custom-logo { max-height: 50px; width: auto; }
.site-logo-text { font-size: 24px; font-weight: 800; color: var(--bs-theme-color); letter-spacing: -0.5px; }
.site-logo-text:hover { color: var(--bs-sec-theme-color); }

/* === Navigation === */
.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-list { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list > li > a { display: block; padding: 24px 18px; font-size: 15px; font-weight: 600; color: #333; transition: color .2s; position: relative; }
.nav-list > li > a::after { content: ''; position: absolute; bottom: 0; left: 18px; right: 18px; height: 3px; background: var(--bs-theme-color); transform: scaleX(0); transition: transform .25s; }
.nav-list > li:hover > a, .nav-list > li.active > a, .nav-list > li.current-menu-item > a { color: var(--bs-theme-color); }
.nav-list > li:hover > a::after, .nav-list > li.active > a::after, .nav-list > li.current-menu-item > a::after { transform: scaleX(1); }
.nav-link .arrow { font-size: 10px; margin-left: 4px; opacity: .5; }

/* === Dropdown === */
.sub-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 220px; box-shadow: 0 8px 24px rgba(0,0,0,.12); border-top: 3px solid var(--bs-theme-color); z-index: 100; padding: 8px 0; }
.nav-list > li:hover > .sub-menu { display: block; }
.sub-menu li a { display: block; padding: 10px 18px; font-size: 14px; color: #495057; transition: all .15s; }
.sub-menu li a:hover { background: #f8f9fa; color: var(--bs-theme-color); padding-left: 22px; }

.nav-list > li > .sub-menu > li{position:relative;}

/* Sub-sub menu */
.sub-menu .sub-menu { left: 100%; top: 0; border-top: none; border-left: 3px solid var(--bs-theme-color); }
.sub-menu li:hover > .sub-menu { display: block; }

/* === Header Actions === */
.header-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.header-inquiry-btn i { margin-right: 6px; }

/* === Mobile Toggle === */
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.hamburger-line { display: block; width: 24px; height: 2px; background: #333; transition: all .3s; }
.mobile-toggle.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
.mobile-toggle.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === Mobile Overlay === */
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 998; }
.mobile-overlay.active { display: block; }
