/* ============================================
   TWO-ROW SITE HEADER
   ============================================ */

.site-header {
    background: var(--navbar-bg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    z-index: 1050;
    top: 0;
    left: 0;
    right: 0;
}

/* --- Top bar --- */
.header-top {
    border-bottom: 1px solid #e8e8e8;
    padding: 8px 0;
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-logo {
    text-decoration: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo-text {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.7rem;
    line-height: 1;
}

.logo-box {
    background: var(--accent-color);
    color: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-right: 2px;
}

.logo-name {
    color: var(--dark-bg);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.header-top-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.header-info-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-actions-row {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: flex-end;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: #444;
}

.contact-label {
    color: #666;
    font-weight: 500;
}

.contact-phone {
    color: var(--accent-text);
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
}

.contact-phone:hover {
    text-decoration: underline;
    color: var(--accent-dark);
}

.header-address {
    font-size: 0.85rem;
    color: #555;
}

.header-social {
    display: flex;
    gap: 10px;
    align-items: center;
}

.header-social a {
    color: #555;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s;
}

.header-social a:hover {
    color: var(--accent-color);
}

/* --- Nav bar (desktop uses CMS navbar_bg, mobile uses accent-color via mobile-action-bar) --- */
.header-nav-bar {
    padding: 0;
    background: var(--navbar-bg);
}

.header-nav-inner {
    display: flex;
    align-items: center;
}

.main-nav {
    width: 100%;
}

.main-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: flex-end;
}

.main-nav-item {
    position: relative;
}

.main-nav-link {
    display: block;
    padding: 12px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--accent-color);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
    border-bottom: 3px solid transparent;
}

.main-nav-link:hover,
.main-nav-link:focus {
    color: var(--accent-dark);
    border-bottom-color: var(--accent-color);
    background: none;
}

/* Dropdown */
.has-dropdown:hover .nav-dropdown,
.has-dropdown:focus-within .nav-dropdown {
    display: block;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-top: 2px solid var(--accent-color);
    border-radius: 0 0 6px 6px;
    min-width: 180px;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    z-index: 100;
}

.nav-dropdown li a {
    display: block;
    padding: 8px 18px;
    font-size: 0.85rem;
    color: #333;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.nav-dropdown li a:hover {
    background: #f5f5f5;
    color: var(--accent-color);
}

/* Mobile toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    position: relative;
}

.mobile-menu-toggle > span:not(.mob-action-menu-badge) {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Mobile Action Bar */
.mobile-action-bar {
    display: none;
    background: var(--accent-color);
    width: 100%;
    position: relative;
}

.mob-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 0;
    color: #fff;
    font-size: 1.3rem;
    text-decoration: none;
    background: none;
    border: none;
    border-right: 1px solid rgba(255,255,255,0.25);
    cursor: pointer;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.mob-action-btn:last-child {
    border-right: none;
}

.mob-action-btn:hover,
.mob-action-btn:active {
    background: var(--accent-dark);
    color: #fff;
}

.mob-action-menu-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 17px;
    height: 17px;
    border-radius: 9px;
    background: #dc3545;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
    pointer-events: none;
}

/* ── Desktop Right-Side FAB Strip ─────────────────────────────── */
/* Positioning handled via inline style on the element for cache-safety */
.desktop-fab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 58px;
    height: 58px;
    border-radius: 10px 0 0 10px;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    text-decoration: none;
    transition: width .18s, box-shadow .18s, background .15s;
    box-shadow: -2px 2px 10px rgba(0,0,0,.18);
    padding: 0;
    line-height: 1;
}

.desktop-fab-btn:hover {
    width: 66px;
    box-shadow: -3px 3px 14px rgba(0,0,0,.24);
    text-decoration: none;
}

.desktop-fab-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    line-height: 1;
}

.desktop-fab-fav {
    background: #1a2a4a;
    color: #fff;
    position: relative;
}
.desktop-fab-fav:hover { background: #243a64; color: #fff; }

.desktop-fab-approve {
    background: #1a2a4a;
    color: #fff;
    text-decoration: none;
}
.desktop-fab-approve:hover { background: #243a64; color: #fff; }

.desktop-fab-trade {
    background: #1a2a4a;
    color: #fff;
    text-decoration: none;
}
.desktop-fab-trade:hover { background: #243a64; color: #fff; }

.desktop-fab-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: #dc3545;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
}

